Skip to content

Resolved delve debugger issues #34

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

Merged
merged 4 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file renamed __debug_bin2909398763 → Go/__debug_bin2763616131
Binary file not shown.
7 changes: 3 additions & 4 deletions Go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import "fmt"
func main() {
fmt.Println("Starting the Go debugger test")

counter := 0
counter := 0

for i := 0; i < 5; i++ {
counter++
fmt.Println("Counter value:", counter)

fmt.Printf("Counter value at iteration %d: %d\n", i, counter)
}

fmt.Println("Final Counter value:", counter)
}

27 changes: 17 additions & 10 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,24 @@ const {
} = require("./src/blockReader/blockchainExplorer.js");
const { log } = require("console");
let loadedConnectionProfile = null;
let factory;

function activate(context) {
console.log("Activating Fabric Debugger extension...");

const factory = new DelveDebugAdapterDescriptorFactory();
context.subscriptions.push(
vscode.debug.registerDebugAdapterDescriptorFactory("delve", factory)
);
context.subscriptions.push(factory);
console.log("Fabric Debugger extension Registered");


const fabricDebuggerPathNew = "C:\\Users\\chinm\\fabric-debugger";
=======
const fabricDebuggerPath = context.extensionPath;


let greenButton = vscode.commands.registerCommand("myview.button1", () => {
const platform = process.platform;
let command;
Expand Down Expand Up @@ -181,12 +195,7 @@ function activate(context) {
});
}

factory = new DelveDebugAdapterDescriptorFactory();
context.subscriptions.push(
vscode.debug.registerDebugAdapterDescriptorFactory("delve", factory)
);
console.log("Delve Debug Adapter Registered");


const hyperledgerProvider = new fabricsamples();
const treeViewProviderFabric = new TreeViewProvider(
"fabric-network",
Expand Down Expand Up @@ -1324,12 +1333,10 @@ function extractWalletDetails(walletData) {
}
}

return null;
function deactivate() {
console.log("Deactivating Fabric Debugger extension...");
}

function deactivate() {}


module.exports = {
activate,
deactivate,
Expand Down
Loading
Loading