Merge pull request #111 from bcmi-labs/debugger_cli_update

[debugger] Added --interpreter mi2 flag
This commit is contained in:
Akos Kitta 2020-07-15 10:24:13 +02:00 committed by GitHub
commit 3082b3d643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -27,6 +27,7 @@ export class ArduinoGDBBackend extends GDBBackend {
'debug', 'debug',
'-p', requestArgs.uploadPort || 'none', '-p', requestArgs.uploadPort || 'none',
'-b', requestArgs.fqbn, '-b', requestArgs.fqbn,
'--interpreter', 'mi2',
sketchDir sketchDir
]; ];
const proc = spawn(command, args); const proc = spawn(command, args);

View File

@ -0,0 +1,9 @@
const os = require('os');
const path = require('path');
// Enables the discovery of the VS Code extensions in the embedded `plugins` folder in the final app.
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '..', 'plugins')}`;
process.env.THEIA_PLUGINS = [
process.env.THEIA_PLUGINS,
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
].filter(Boolean).join(',');
require('../src-gen/frontend/electron-main.js');

View File

@ -1,5 +1,5 @@
{ {
"main": "src-gen/frontend/electron-main.js", "main": "scripts/arduino-pro-ide-electron-main.js",
"author": "Arduino SA", "author": "Arduino SA",
"resolutions": { "resolutions": {
"**/fs-extra": "^4.0.3" "**/fs-extra": "^4.0.3"
@ -54,6 +54,7 @@
"files": [ "files": [
"src-gen", "src-gen",
"lib", "lib",
"scripts",
"!node_modules/**/*.{ts,map}", "!node_modules/**/*.{ts,map}",
"!node_modules/**/*.spec.js", "!node_modules/**/*.spec.js",
"!node_modules/@theia/**/test/*", "!node_modules/@theia/**/test/*",