xsharp.eu • Debugging Application in VS 17.2.5 and xSharp 2.12.2.0
Page 1 of 1

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Fri Aug 19, 2022 11:09 am
by DFoley
Hi All
I am having an issue starting debug mode in one of our xSharp projects. When I click Debug, Start New Instance, the output Window shows the Rebuild of the Project, but ends at that point without starting the application in debug mode.
I have reproduced this issue by creating a brand new xSharp wpf Project, using the built in Template. The debug issue occurs without making any changes to the application. I am using Microsoft Visual Studio Enterprise 2022 (64-bit) Version 17.2.5 on Windows 11 with xSharp Version 2.12.2.0.
Regards,
David

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Fri Aug 19, 2022 3:42 pm
by ic2
Hello David,

This is most likely one of the many VS flaws. I had it just a few days ago.

After deleting the OBJ and BIN directories of the solution (where also the PDF files are located) and restarting VS it worked again.

Dick

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Fri Aug 19, 2022 7:52 pm
by robert
David,
If this keeps happening then I would like to see an example project

Robert

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Mon Aug 22, 2022 8:17 am
by DFoley
Hi Robert
You should be able to reproduce this in VS2022 by creating a brand new xSharp wpf Project, using the built in Template. Without making any changes to the Project I can reproduce the issue.
Regards,
David

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Mon Aug 22, 2022 8:45 am
by robert
David,
I just tested this with X# 2.12.2.0 on a VS2022 Community version 17.3 and I see it too.
I then updated X# to 2.13.0.7 and the debugging works as expected.
I am not sure what caused this, but is fixed in the current release.
Can you update to the latest version, or is that impossible ?

Otherwise (since your company is a Corporate Sponsor) we could create a private build that combines the 2.12.2.0 runtime and compiler with the 2.13.0.7 VS integration.

Robert

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Mon Aug 22, 2022 10:23 am
by DFoley
Hi Robert
Perfect. Thanks for that. We will work with the new build.
Regards,
David

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Thu Sep 15, 2022 12:52 am
by JohnBonnett88
Hi All,
I am running VS Pro V17.3.4 and X# V2.12.2 and I have a little problem I see when debugging, as follows:
Debug1.png
Debug1.png (14.87 KiB) Viewed 698 times
I have clicked on the View down-arrow, then click on visualizer, and get this.
Debug2.png
Debug2.png (3.6 KiB) Viewed 698 times
Can actually see what is in aResult by using that arrow to left of aResult, which shows an IEnumerable visualizer.

Is there something I should adjust, or is it the VS integration?

Best Regards,
John

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Thu Sep 15, 2022 5:56 am
by robert
John
The IEnumerable Visualizer is a relatively new feature of VS that does not always work,.
You should be able to see the contents in the locals window. The contents of a few elements is always shown.
clicking on the + character allows you to see the rest
array.png
array.png (40.24 KiB) Viewed 698 times
Robert

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Posted: Thu Sep 15, 2022 5:56 am
by robert
John
The IEnumerable Visualizer is a relatively new feature of VS that does not always work,.
You should be able to see the contents in the locals window. The contents of a few elements is always shown.
clicking on the + character allows you to see the rest
array.png
Robert