You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Operating System Specific Properties in launch.json #1873
👍 This will come very handy especially when developing Electron apps. Currently I'm stuck at changing the "runtimeExecutable" path each time when changing OS env.
Andre Weinand (@weinand) no, I also send the "windows" part to each adapter. I could remove it - but we are not doing that for any other property so far - removing it from the launch.json
Dimitris "Jimi" Charalampidis (@JimiC) "mynode.app" is the name of the application folder (aka "application bundle'") which the Finders shows as the application "mynode" in the UI. But mynode.app is not an executable in the OS sense, so you can not use it with the "runtimeExecutable" attribute from above. For "runtimeExecutable" you have to specify a file that has the executable bit set, e.g. "/usr/local/bin/node".
re 'outDir': the platform specific sections support the same attributes as the enclosing scope.
Activity
felixfbecker commentedon Jan 9, 2016
+1
isidorn commentedon Jan 11, 2016
fyi Andre Weinand (@weinand)
weinand commentedon Jan 11, 2016
Proposal: wrapping any attribute or group of attributes in a sub structure "osx", "linux", and "windows" makes it OS specific.
felixfbecker commentedon Jan 11, 2016
Yes, and env variables declared without an OS should merge with the OS specific ones.
joekim commentedon Mar 3, 2016
Andre Weinand (@weinand)
+1 for proposal. Need to specify a different "runtimeExecutable" when on osx vs. win32
JimiC commentedon May 31, 2016
👍 This will come very handy especially when developing Electron apps. Currently I'm stuck at changing the "runtimeExecutable" path each time when changing OS env.
weinand commentedon Jun 2, 2016
Isidor Nikolic (@isidorn) am I right that this feature does not change the structure of the launch config that arrives in the debug adapter?
Example:
{ "type": "node", "request": "launch", "runtimeExecutable": "mynode", "Windows": { "runtimeExecutable": "mynode.exe" } }arrives in the debug adapter on OS X and linux as:
{ "type": "node", "request": "launch", "runtimeExecutable": "mynode" }and on Windows as:
{ "type": "node", "request": "launch", "runtimeExecutable": "mynode.exe" }isidorn commentedon Jun 2, 2016
Andre Weinand (@weinand) no, I also send the "windows" part to each adapter. I could remove it - but we are not doing that for any other property so far - removing it from the launch.json
felixfbecker commentedon Jun 2, 2016
Isidor Nikolic (@isidorn) please do that on the VS Code side
weinand commentedon Jun 2, 2016
Isidor Nikolic (@isidorn) and what are you sending to the adapter in this case:
{ "type": "node", "request": "launch", "Windows": { "runtimeExecutable": "mynode.exe" }, "OSX": { "runtimeExecutable": "mynode" }, "linux": { "runtimeExecutable": "mynode" } }isidorn commentedon Jun 2, 2016
on windows
felixfbecker commentedon Jun 2, 2016
thats fine 👍
weinand commentedon Jun 2, 2016
Isidor Nikolic (@isidorn) intellisense inside the OS sections works?
JimiC commentedon Jun 2, 2016
Excuse my ignorance but doesn't OSX use "mynode.app"?
Isidor Nikolic (@isidorn) And what about
outDir(when using Electron with Typescript)?weinand commentedon Jun 2, 2016
Dimitris "Jimi" Charalampidis (@JimiC) "mynode.app" is the name of the application folder (aka "application bundle'") which the Finders shows as the application "mynode" in the UI. But mynode.app is not an executable in the OS sense, so you can not use it with the "runtimeExecutable" attribute from above. For "runtimeExecutable" you have to specify a file that has the executable bit set, e.g. "/usr/local/bin/node".
re 'outDir': the platform specific sections support the same attributes as the enclosing scope.
JimiC commentedon Jun 2, 2016
Andre Weinand (@weinand) Thanks for clarifying. I see it now. The executable is in "*.app/Contents/MacOS/".
isidorn commentedon Jun 2, 2016
Andre Weinand (@weinand) not inside, but you get OS sections offered top level
weinand commentedon Jun 2, 2016
Isidor Nikolic (@isidorn) we should offer intellisense for the OS types on the top level and repeat the intellisense inside the OS sections.
debug: suggestions inside os specific settings
isidorn commentedon Jun 2, 2016
Added intellisense inside os sections