Description
I am trying to write a manual on how to set up the needed settings to debug Kratos simultaneously in Python and c++ in Windows.
Anyone who wants to try please help me correcting the steps:
Python and C/C++launch.json filelaunch.json is created, add two configurations: one for Python and one for (Windows) AttachPlay button (the run should start and hit the breakpoint you just set)Play button. It asks for a process to attach to. Type python and choose the last one of the matches (that's the one at the bottom!).Notes:
pid=os.getpid() and watch the value of the variable you just created (pid).@salvalatorre @AlejandroCornejo please try these steps. For any difficulty, we should find out why it works for me and not for you.
Thanks, checking!
I am updating the manual according to your comments.
I forgot to say it worked, thanks, good job!
cool @maceligueta! Do you know if sth like this is also possible with Linux?
Also I wanted to say that there is a manual for doing the same with Visual Studio, probably makes sense to add your explanations there too: https://github.com/KratosMultiphysics/Kratos/wiki/How-to-cross-debug-Kratos-under-Windows
Yes, @ipouplana and me used it many times in Linux, but they changed something and our setup got broken. Maybe it's even easier now, I need to try it.
I'll wait for more feedback and once finished, I will put this setup in the wiki as you propose @philbucher
We have pretty much everything standarized for compiling, debugging in python, C++, cross debugging and running the test. I will add out tasks, launch confiruation and our short tutorial so that it can be improved.
Many thanks @jrubiogonzalez !
@AdriaMP this could be of your interest.