spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.26k stars 1.61k forks source link

Debugging on remote kernel not working -concatenating paths #21996

Open Mrsxp opened 5 months ago

Mrsxp commented 5 months ago

I'm currently experiencing the same issue again, however no exception is thrown. Spyder-Kernel-Version: 2.5.1 Spyder-Version: 5.5.1 Qt 5.15.2 PyQt5 5.15.10

Yet, the paths are concatenated. While debugging following appears:

debugfile('X:/program/debug_test.py') /home/usr/shared/X:/program/debug_test.py(1)()

Executing the code line by line works but breakpoints are ignored.

ccordoba12 commented 5 months ago

Hey @Mrsxp, thanks for reporting. You said:

Executing the code line by line works but breakpoints are ignored.

What do you mean by this? Is debugging working but breakpoints failing?

Mrsxp commented 5 months ago

Thank you for your instant reply. Indeed, debugging is working line by line, but breakpoints are ignored and thus stopping at them fails.

ccordoba12 commented 5 months ago

Ok, thanks for the confirmation. Right now we're wrapping up Spyder 6, but we'll definitely take a look at this in 6.1, to be released during the second half of the year.

qiyang77 commented 2 months ago

Same issue, any workarounds?

ccordoba12 commented 2 months ago

@qiyang77, you can use code breakpoints, i.e. you can add a line to your code with the command breakpoint() to stop where you want to start a debugging session.