Skip to content

StackTrace does not show up on stack trace when use AddInManager 2025 #59

@jmosh6

Description

@jmosh6

Describe the bug
I have noticed that the line # does not appear in the stacktrace of the exception. This seems to only be the case when loading my application through AddInManager rather than fully loading it in. I can see that I do have a .pbd file in the folder where the .dll exists, so I don't think it is that. My debug type is as follows. Full

This is a screenshot of a TaskDialog displaying the stacktrace when the application is fully loaded in.
FullyLoaded

This is a screenshot a TaskDailag displaying the stacktrace when it is run through AddinManager
AddInManagerLoaded

This is a simple project I created to demonstrate the issue. The issue can be reproduced by

First Scenario

  • installing this project,
  • clicking "Do Not Load
  • Load it through addinmanager
  • Run "TestCommand"
  • Trace line should not be shown.

Second Scenario

  • Re-opening Revit
  • clicking "Load Once"
  • Run "TestCommand"
  • Trace line should be shown.

https://github.com/jmosh6/ExampleProject

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions