breakpoints not being hit in VB.net application

Hoping someone can help with this error message when debugging VB.net code using VS2022

"Your app has entered a break state, but no code is currently executing that is supported by the selected debug engine (e.g. only native runtime code is executing)."

Basically any breakpoint I have set that is within code executed from a form does not get hit and gives this message. (it works fine when debugging in Acad)

Any code that is executed without a form being loaded the breakpoints get hit normally.

Comments

  • If anyone is programing with VS2022 and does not have this problem I'd appreciate letting me know. At least then I would know it is something I can fix and not something I need to live with.

  • Toshi
    edited January 7

    System variable FIBERWORLD is your trick.

    Set NEXTFIBERWORLD to 0 and restart CAD to set FIBERWORLD to 0.

    Note that FIBERWORLD must be set to 1 except for debugging or side effects will occur.

  • OMG! thank you!! This was driving me nuts. Now I'm having deja vu cause I remember now changing this in Autocad many years ago.