Giter VIP home page Giter VIP logo

Comments (11)

NeVeSpl avatar NeVeSpl commented on September 10, 2024 1

Plugins are running inside Revit process, debugger can be attached only to the whole process, therefore you are debugging every loaded assembly that is not build with optimization enabled or there are available debug symbols (*.pdb) for it.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024 1

@guffab i see. indeed the slowdown in performance is felt quite critically.

Maybe Visual Studio users can help you, I use Jet Brains debugger and I can't test VS debugger. In my case this is not observed
изображение

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@guffab during debug uses unoptimised code, any Debug build will be slower than Release. However 5-10 seconds is not normal, without more information there is no idea what the problem is

from revitlookup.

guffab avatar guffab commented on September 10, 2024

@Nice3point I think there is also a misunderstanding. I am not debugging the RevitLookup tool, but my own plugin. As far as I know, this should not have any affect on Revit or other plugins.

from revitlookup.

guffab avatar guffab commented on September 10, 2024

So am I correct to assume the version of RevitLookup I installed was not built in Release Mode and it also includes .pdb files?
Could this be the reason for the issue I am seeing?

I should also mention there is no issue with versions prior to Revit 2024. Maybe it has something to do with the UI change?

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

RevitLookup is published in Release mode, and does not ship with pdb files.
If your plugin is not protected by NDA, you can send us the source code to understand what the problem is. We cannot answer your question without analysing it

from revitlookup.

guffab avatar guffab commented on September 10, 2024

Here is a bare-bones version of my plugin. To reproduce the issue:

  1. Unpack
  2. Open in Visual Studio
  3. Start with Debugger
  4. Open existing project or create a new one
  5. Select an element and click RevitLookup > Snoop Selection

ExamplePlugin.zip

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@guffab the code is completely empty, it doesn't cause any problems, everything works fine as before during debugging
изображение

from revitlookup.

guffab avatar guffab commented on September 10, 2024

Interestingly enough, on my PC (and those of my colleagues) there doesn't have to be any actual code in the project to reproduce it. Did you test it with the Visual Studio Debugger or only with Jetbrains Rider?

Snoop Selection of different elements and clicking on their Properties/Methods also works smoothly for you?

from revitlookup.

guffab avatar guffab commented on September 10, 2024

I just checked on another colleagues PC. He did not have this problem, but he also had an older version installed:
image

After he updated, he had the same problem.


Here are two videos showing the difference (with and without Debugger):

Without.Debugger.mp4
With.Debugger.mp4

from revitlookup.

ricaun avatar ricaun commented on September 10, 2024

I tested in Visual Studio 2022 with the last version (2024.1.4) and looks normal. I'm using Revit 2024.0.

Only the EventMonitor that is showing something in the console:

2024-05-17 14:00:14 [DBG] RevitLookup.Core.EventMonitor: RevitLookup EventMonitor: Autodesk.Revit.DB.Document.DocumentClosing
2024-05-17 14:00:14 [DBG] RevitLookup.Core.EventMonitor:  - success
...

Looks normal.

from revitlookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.