VS code cannot debug python code that is executed by a shell script. You have to execute python code directly in order to debug it. My strategy usually is to create a new (temporary) python file that contains the code I want to debug (or calls the method I want to debug), and then use the python debug launch config to debug it. On Wednesday, 13 April 2022 at 21:51:14 UTC+2 hohoa...@gmail.com wrote:
> Hi, > > phiho has been struggling to step into python code from the shell scripts > without success. > (After installing VSCode client on Windows, remote WSL, Python and Bash > Debug extensions) > > He couldn't interact with Sage console started in the DEBUG CONSOLE of > VSCode (after stepping through sage/sage and sage/src/bin/sage) > > Any hint on how to achieve these two things is much appreciated. > > Please find attached a screen capture of VSCode. > > Regards, > > phiho > > > On Wed, Apr 13, 2022 at 11:42 AM Matthias Koeppe <matthia...@gmail.com> > wrote: > >> See https://trac.sagemath.org/ticket/30484 - help is welcome in writing >> instructions for our documentation >> >> On Wednesday, April 13, 2022 at 1:33:14 AM UTC-7 hohoa...@gmail.com >> wrote: >> >>> Dear All, >>> >>> There was a related discussion here: >>> >>> https://ask.sagemath.org/question/43240/sagemath-and-vscode/ >>> >>> Is there any way to debug SageMath using VScode client on Windows and >>> server on "remote WSL" (on the same machine)? >>> >>> Your advice is much appreciated. >>> >>> Regards, >>> >>> phiho >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-devel/3bc35300-2454-4d5b-a0de-6f62391f846an%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sage-devel/3bc35300-2454-4d5b-a0de-6f62391f846an%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/5ec51ac4-8571-4cfb-a77e-03ae489a5f4bn%40googlegroups.com.