Developer forum

Forum » Development » debugging in DW10

debugging in DW10

Davy Capiau
Reply

Hello everyone,

 

I'm seeking assistance with debugging in DW10, as I'm encountering some challenges that were not present in DW9. Here's a summary of the situation, as explained by a colleague:

 

In DW9, I could set up a local environment, which allowed me to place breakpoints and see the data in various classes in real-time. This was incredibly helpful for both identifying the necessary data and troubleshooting issues.

 

However, in DW10, I'm essentially working "blind." While I can use Visual Studio to look up class properties through IntelliSense or directly in the codebase, many of these properties are dynamically built using key-value pairs. This makes it difficult to determine where to extract the desired data and what it will look like.

 

In DW9, I had the ability to search for keywords within the available data during debugging, which made it easier to quickly find and extract what I needed (for example, if I needed a color property, searching for a specific color like 'red' would show me exactly where and how to access it).

 

Does anyone have experience or tips on effectively debugging in DW10? Any advice on how to navigate this setup would be greatly appreciated!

 

Thank you!


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Davy

Dynamicweb 10 is a regular .net core app and supports debugging like DW9 - see here for some tips: https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2022

To debug into Dynamicweb source code, you can attach our debugging symbols when running locally based off our nuget packages:
https://learn.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2022#configure-location-of-symbol-files-and-loading-options

The only thing that is difficult right now is debugging your razor templates in DW10 - we have not found a way to do that as of yet.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum