Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

This forum is meant for questions and discussions about the X# language and tools
Post Reply
DFoley
Posts: 3
Joined: Wed Nov 25, 2015 9:40 am
Location: Ireland

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post by robert »

David,
If this keeps happening then I would like to see an example project

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
DFoley
Posts: 3
Joined: Wed Nov 25, 2015 9:40 am
Location: Ireland

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
DFoley
Posts: 3
Joined: Wed Nov 25, 2015 9:40 am
Location: Ireland

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post by DFoley »

Hi Robert
Perfect. Thanks for that. We will work with the new build.
Regards,
David
JohnBonnett88
Posts: 45
Joined: Mon Mar 07, 2022 12:34 am

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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 364 times
I have clicked on the View down-arrow, then click on visualizer, and get this.
Debug2.png
Debug2.png (3.6 KiB) Viewed 364 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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 364 times
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debugging Application in VS 17.2.5 and xSharp 2.12.2.0

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply