Skip to content

Commit ddec650

Browse files
authored
Merge pull request #34 from technomad01/main
Resolved delve debugger issues
2 parents 87840b4 + 5b21cad commit ddec650

File tree

7 files changed

+154
-117
lines changed

7 files changed

+154
-117
lines changed
Binary file not shown.

Go/main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import "fmt"
55
func main() {
66
fmt.Println("Starting the Go debugger test")
77

8-
counter := 0
8+
counter := 0
9+
910
for i := 0; i < 5; i++ {
1011
counter++
11-
fmt.Println("Counter value:", counter)
12-
12+
fmt.Printf("Counter value at iteration %d: %d\n", i, counter)
1313
}
1414

1515
fmt.Println("Final Counter value:", counter)
1616
}
17-

extension.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,24 @@ const {
2424
} = require("./src/blockReader/blockchainExplorer.js");
2525
const { log } = require("console");
2626
let loadedConnectionProfile = null;
27+
let factory;
2728

2829
function activate(context) {
30+
console.log("Activating Fabric Debugger extension...");
31+
32+
const factory = new DelveDebugAdapterDescriptorFactory();
33+
context.subscriptions.push(
34+
vscode.debug.registerDebugAdapterDescriptorFactory("delve", factory)
35+
);
36+
context.subscriptions.push(factory);
37+
console.log("Fabric Debugger extension Registered");
38+
39+
40+
const fabricDebuggerPathNew = "C:\\Users\\chinm\\fabric-debugger";
41+
=======
2942
const fabricDebuggerPath = context.extensionPath;
3043

44+
3145
let greenButton = vscode.commands.registerCommand("myview.button1", () => {
3246
const platform = process.platform;
3347
let command;
@@ -181,12 +195,7 @@ function activate(context) {
181195
});
182196
}
183197

184-
factory = new DelveDebugAdapterDescriptorFactory();
185-
context.subscriptions.push(
186-
vscode.debug.registerDebugAdapterDescriptorFactory("delve", factory)
187-
);
188-
console.log("Delve Debug Adapter Registered");
189-
198+
190199
const hyperledgerProvider = new fabricsamples();
191200
const treeViewProviderFabric = new TreeViewProvider(
192201
"fabric-network",
@@ -1324,12 +1333,10 @@ function extractWalletDetails(walletData) {
13241333
}
13251334
}
13261335

1327-
return null;
1336+
function deactivate() {
1337+
console.log("Deactivating Fabric Debugger extension...");
13281338
}
13291339

1330-
function deactivate() {}
1331-
1332-
13331340
module.exports = {
13341341
activate,
13351342
deactivate,

0 commit comments

Comments
 (0)