question

Steven Chen avatar image
0 Likes"
Steven Chen asked Phil BoBo answered

Refresh view whlie breaking in Visual Studio debugging

Hello,

When using Visual Studio to debug FlexSim by attaching process, is it possible to refresh FlexSim views while code stops at breakpoint in Visual Studio?

For example function below, output console won't update until code in Visual Studio exits break mode. So the effect of each line of codes won't be visible in FlexSim.

void dllfunction1(FLEXSIMINTERFACE)
{
    print("A");   // breakpoint here
    print("B");
}
FlexSim 22.1.1
debuggingvisual studio
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered

No. When you hit a breakpoint in Visual Studio, the program is halted on that line. FlexSim isn't running at that point. It is waiting for you to step through its code.

"Refreshing views" is executing other code. The application can't do that while you've stopped it to debug.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.