-
Notifications
You must be signed in to change notification settings - Fork 519
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
Add. debugger.pathmap settings to manually map remote and local paths #849
base: master
Are you sure you want to change the base?
Conversation
Since we discuss it in #846, I'll copy the relevant part here for the discussion:
I still don't see how this works with one project, since this requires two different environments in your applications and in the IDE. Can you provide more details on how you "step in to a server code", because this is one of the things I don't quite follow in the discussion. Do you have the same code in your application and in your server code? Because if not, then it's two different projects and probably need to be debugged from two different instances of the IDE (which is possible to setup). |
Server side is applicatin server with set of libraries, This is separate project written on Lua, |
@moteus, I see from the discussion in #998 that you have a mapping that looks like the following:
I agree, this configuration is not supported by the current setup, as its assumption is that one source tree is present on both the client and the server (even though the paths to that tree may be different and will be remapped as needed). In you case subdirectories are mapped to different trees, which require explicit remapping. I'm more inclined to merge it, even though it's likely to be a rare case. Let me think about the name (it's likely to be Do you think it will help to address #998 as well? |
There need map to the both ways. First one to support step by step debugging and second one to support breakpoints. |
Add. Support relatives local paths. Fix. Case insensitive file path comparison
With the last update, config looks like
This allows to use the same config on all platforma (Win/Linux) and by several users (because the not full path to the home directory). |
@moteus, I pushed several changes to Mobdebug (to address pkulchenko/MobDebug#51) and suspect that they may help with the remapping you are looking for as well. Can you do the following experiment if you have few minutes:
Another option is to replace step 3 with: Set the project directory to a directory that only has the client code, but open the |
Another case for multiple mappings: tests. Spec files will likely reside in a different tree than code under test, so there are at least two source roots to map. One particular test runner, |
Please just merge this? Thanks in advance! |
Settings like
I need this because I need map 2 remote dirs.
../
maps to may project automatically by ZBS.But I also has different project on remote side which should map to
different local path. So full map should looks like:
../
->~/project/client
(done by ZBS)/usr/share/server
->~/project/server
(done by this new settings)May be there better name for this optioms