New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scope debug plugin: using resources with relative path #785
Comments
Hi perezh, |
No, I didn't. It was empty. |
This seems to work OK for me. I created a file in a folder E.g. see the screenshot below: Only setting the |
Thanks for your reply. This is how the scope debugger works, but it is somehow unusual to set a working dir since running the binary in geany without debugging does not require it. At least, this does not seem the typical setup in other debuggers. Anyway, I think we can close this issue as it is the expected behaviour of the scope plugin. |
Of course not. But if the program uses a relative path then you need the correct working dir to be set. Well, an alternative would be to use the directory of the binary, if the "Working dir" is empty. But I think using the directory of the binary might not always be the correct working dir so I do not want to remove that option. Another option would be to use the current project's base path (if a project is open). |
Yes, I fully agree. If working dir is empty, the default dir should be the directory of the binary. This can speed up working with geany. |
Actually it does, see So using the directory of the specified executable as default when nothing is specified makes sense. |
Hi all,
I've successfully built the current master of geany and geany-plugins from source with the scope plugin. However, it seems that binaries are executed in a different way from geany when debugging.
I've a program which opens a image file using a relative path (e.g., ./resources/file.png). When geany is used to execute it, it runs without any problem. When I run it using scope, the program raises an error stating that the file cannot be found.
If I use an absolute path to the file, then I can run the program without errors from geany and from the debugger.
Thanks very much!
The text was updated successfully, but these errors were encountered: