Skip to content

Conversation

@sanak
Copy link

@sanak sanak commented Apr 27, 2024

This is similar with PR #14, but using another approach to support both Windows/macOS environments.
I get python path from the following issue/PR and I just used 2nd PR's get_qgis_python_path function.

  1. Python sys.executable returns wrong value in the Python Console qgis/QGIS#45646
  2. Fix setup specklesystems/speckle-qgis#126

This PR should solve all Windows/macOS related issues (#12, #13, #16, #17).

I still haven't tested this on Linux environment, but I will check it tomorrow.
=> 2024-04-29: I confirmed that Linux environment (Ubuntu 22.04 amd64, QGIS 3.34 LTS) works fine.

@AsadAliBaig
Copy link

Thank you for the contribution💜 I tested it today on Windows and it worked perfectly. @lmotta any plans to merge it soon?

@axeis
Copy link

axeis commented May 16, 2024

works for me on windows

@chau-intl
Copy link

It works for me on Windows 10 too. Love to see this merged so I don't have to manually patch the plugin after installation.

@ValentinBuira
Copy link

I second this. This PR would be really helpful to have

@alukach
Copy link

alukach commented Dec 23, 2024

Confirmed that this fix worked for my needs on Darwin (Mac OSX)

@sanak
Copy link
Author

sanak commented Feb 11, 2025

Hi @lmotta, (CC: @cvvergara)
I want to use this nice plugin for pgRoutingLayer plugin development,
so reviewing this PR is really helpful.
Thanks!

@ivanbarsukov
Copy link

Hi @sanak,

Thank you for your work on improving QGIS debugging workflows. I wanted to let you (and others watching this repository) know that we've recently released a new plugin called QGIS DevTools, which provides similar functionality with a focus on long-term maintainability and extensibility.

QGIS DevTools supports debugging QGIS Python code via debugpy and Visual Studio Code, including features such as:

  • launching the debugger at QGIS startup
  • selecting a custom range of ports
  • viewing debug status in the QGIS interface

You can find more information here:

We warmly invite you and others interested in this topic to try it out and share feedback or contribute.

@lmotta
Copy link
Owner

lmotta commented Jul 21, 2025

Thank's @ivanbarsukov.

Last week I worked on my plugin (the updates are on GitHub), with contributions from Ilan [1] and other fixes.
[1] https://github.com/pers-ephone/debug_vs_2_plugin/blob/master/__init__.py

I was going to update the plugin, but with your work, I'll mark mine as deprecated.

I tested your plugin, and it's great.

Take a look at the launch.json in my repository. In it, there's no need to define pathMappings or logging. We can use the debugger with more than one plugin.

If possible, take advantage of the 'Load script' feature that's available in my repository. Being able to test a piece of code (script) before adding it to the plugin also helps

@ivanbarsukov
Copy link

ivanbarsukov commented Nov 1, 2025

Hi, @lmotta!

Thank you so much for your kind words and support — it means a lot coming from the original author of debug_vs.

We’ve just released QGIS DevTools 1.3.0, which now includes features based on your suggestions:

  • Script debugging support
  • A simplified way to copy launch.json without needing to manually specify pathMappings

Thanks again for sharing your ideas.

Best regards,
Ivan Barsukov


image

@lmotta
Copy link
Owner

lmotta commented Nov 2, 2025 via email

@simgislab
Copy link

Cheers, Luiz, good memories! Thanks for your support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants