This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Overview: Trying to build and debug a c++ application on a remote Raspberry device over SSH, with the condition that the executable should be placed and run in a specific directory (e.g. /var/my_folder/my_executable). Steps to reproduce: -create a new c++ project and build on a remote host via SSH -change Properties->build->Linker->Output to a fixed name -configure accordingly the Properties->Run->Run command and Properties->Debug->Debug command parameters you will notice that the run mode will work, but the Debug will always give the error: /some_user/.netbeans/remote/some_ip/some_hostname-x86_64/C/Users/some_user/Documents/NetBeansProjects/my_executable does not exist or is not an executable. in other words, the debug path does not seem to be correctly generated, it always prepends the "automatic copying" path no matter what you do. In debug mode, Properties->Debug->Debug command seems to be completely ignored, and the run command is used instead, forcefully prepending the auto copy path, which is not done by the run mode. Properties->Debug->Working Dir seems also to be completely ignored.
confirmed. Workaround: use "Full Remote" mode (https://netbeans.org/kb/docs/cnd/remote-modes.html#gmvfz)
Possible workaround: use "///" prefix for paths if you'd like to suppress path conversions, i.e. ///var/my_folder/my_executable
(In reply to soldatov from comment #1) > confirmed. > > Workaround: use "Full Remote" mode > (https://netbeans.org/kb/docs/cnd/remote-modes.html#gmvfz) Tested, works fine both in run and debug; there seems to be a problem with remote git in this mode, everything works fine but for some reason I can't push the initial commit to a remote repo (gitlab). in the "push to remote repository" wizard I get the error "Cannot connect to the remote repository at https://[my _repo]" although if I do the push from a remote terminal it goes trough fine. Thanks
(In reply to Vladimir Voskresensky from comment #2) > Possible workaround: > use "///" prefix for paths if you'd like to suppress path conversions, i.e. > > ///var/my_folder/my_executable I've tried this solution but it doesn't seem to work, the three slashes do not seem to have any different effect than using just two. Thanks
(In reply to germano2239 from comment #3) > (In reply to soldatov from comment #1) > > confirmed. > > > > Workaround: use "Full Remote" mode > > (https://netbeans.org/kb/docs/cnd/remote-modes.html#gmvfz) > > Tested, works fine both in run and debug; there seems to be a problem with > remote git in this mode, everything works fine but for some reason I can't > push the initial commit to a remote repo (gitlab). in the "push to remote > repository" wizard I get the error "Cannot connect to the remote repository > at https://[my _repo]" although if I do the push from a remote terminal it > goes trough fine. > > Thanks Also you can create empty "Full Remote" project and set "Build|Linker|Output = /tmp/abc". First project can be used in order to modify code, second project can be used in order to debug project. Risks: you will see 2 absolutely independent files (A.cpp on local machine and A.cpp on remote machine). Files has same title and content, but different tooltips.
I created issue 271465 too