Embedded IronPython debugging with breakpoints #1804
Unanswered
matthias-vietz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Our codebase is written mostly in C# with some scripting capabilities using IronPython 3.4. Until recently we based the project on the outdated .Net Framework 4.8 but made the move to .Net 8 recently.
One odd thing is bugging us: With .Net Framework as a target we could load the python script files in Visual Studio and set breakpoints which nicely triggered when the script was executed. After the shift to .Net 8 this does not work any longer.
I created a minimal working example to confirm this behavior:
with the following very simple Test.py file:
print('Test')
One thing I noticed is that with the .Net Framework 4.8 version a symbol "file" called Snippets.debug.scripting is loaded a soon as the Python script is executed. This does not happen in the .Net 8 version.
Just to be sure it is not a problem introduced by .Net 8 I also tried .Net 6 with the same result.
Any ideas how to get breakpoints working with .Net 8? Maybe this is just some Visual Studio setting but I found not clue yet.
Beta Was this translation helpful? Give feedback.
All reactions