Skip to content

Commit 3082b3d

Browse files
authored
Merge pull request #111 from bcmi-labs/debugger_cli_update
[debugger] Added --interpreter mi2 flag
2 parents 18ca84d + 16cb2cf commit 3082b3d

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

arduino-debugger-extension/src/node/debug-adapter/arduino-gdb-backend.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class ArduinoGDBBackend extends GDBBackend {
2727
'debug',
2828
'-p', requestArgs.uploadPort || 'none',
2929
'-b', requestArgs.fqbn,
30+
'--interpreter', 'mi2',
3031
sketchDir
3132
];
3233
const proc = spawn(command, args);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const os = require('os');
2+
const path = require('path');
3+
// Enables the discovery of the VS Code extensions in the embedded `plugins` folder in the final app.
4+
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '..', 'plugins')}`;
5+
process.env.THEIA_PLUGINS = [
6+
process.env.THEIA_PLUGINS,
7+
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
8+
].filter(Boolean).join(',');
9+
require('../src-gen/frontend/electron-main.js');

electron/build/template-package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"main": "src-gen/frontend/electron-main.js",
2+
"main": "scripts/arduino-pro-ide-electron-main.js",
33
"author": "Arduino SA",
44
"resolutions": {
55
"**/fs-extra": "^4.0.3"
@@ -54,6 +54,7 @@
5454
"files": [
5555
"src-gen",
5656
"lib",
57+
"scripts",
5758
"!node_modules/**/*.{ts,map}",
5859
"!node_modules/**/*.spec.js",
5960
"!node_modules/@theia/**/test/*",

0 commit comments

Comments
 (0)