Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
avm-debug-adapter
Advanced tools
Changelog
Readme
This repo contains an AVM debugger which adheres to the Debug Adapter Protocol. This protocol is used by a variety of clients, and this repo additionally implements a basic client for VS Code.
Unlike traditional debuggers, which typically execute code as it is being debugged, this debugger operates on an execution trace. The trace is created by the algod simulate API. This debugger is not responsible for compiling programs, assembling transaction groups, or executing transactions/programs. It is only responsible for replaying the execution trace, which must already exist.
This code is based on the vscode-mock-debug
repo.
There are multiple ways to invoke the debug adapter exported by this package.
The debug adapter can be invoked from the command line using the avm-debug-adapter
command.
If given no arguments, the debug adapter will use stdin and stdout to process messages.
To run as a server, use the --port
option, shown below:
$ npm exec avm-debug-adapter -- --port=8080
>> running as a server, listening on 8080
// AvmDebugSession is a vscode.DebugAdapter implementation and can be imported
// directly if you don't want to run it as a server.
import { AvmDebugSession } from 'avm-debug-adapter';
// From node, you can create a debug adapter server like so
import { Server, nodeFileAccessor } from 'avm-debug-adapter/node';
const server = new Server({
fileAccessor: nodeFileAccessor,
port: 8080,
onSocketError: (err) => {
console.error(err);
},
onServerError: (err) => {
console.error(err);
},
});
console.log('Server listening on port ' + server.port());
process.on('SIGTERM', () => {
server.close();
});
See FEATURES.md for a list of features this debugger supports.
npm i
to install dependencies.Extension
configuration to open the AVM Debug extension in another VS Code window.FAQs
Algorand AVM transaction and smart contract debugger using the Debugger Adapter Protocol
The npm package avm-debug-adapter receives a total of 3 weekly downloads. As such, avm-debug-adapter popularity was classified as not popular.
We found that avm-debug-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.