Typescript & Debugging for Bitburner

Overview

Bitburner Scripts + Typescript + Local Server

A Typescript template project with debugging support, import rewrites and developer convenience.

How to use

  1. Transpile/Run Server: npm run watch
  2. Set an alias once in bitburner: alias init="wget http://localhost:8000/init.js init.js; wget http://localhost:8000/deployment/self-update.js deployment/self-update.js"
  3. Run in bitburner: init

Debugging

Steam

For debugging bitburner on Steam you will need to enable a remote debugging port. This can be done by rightclicking bitburner in your Steam library and selecting properties. There you need to add --remote-debugging-port=9222

docs/EcLJrc.png

Edge

For Edge exists a launch config, you will have to import your save in that - otherwise you will have to run your regular Edge with your user profile in debugging mode, which is not recommended.

Requirements

Nodejs >= 10

Transpiling and Starting Server

Clone this project and on your terminal run:

# Install dependencies
npm ci
# Transpile the code and start server
npm start
# The server will run locally on port 8000 (default)

Updating your code

The code is being automatically generated and ingame the deployment process will check regularly if any updates are available. It will then download all generated scripts in ./dist/ onto home and do a run processor.js.

Contributing

Read the CONTRIBUTING.md file for more information.

Code of Conduct

Read the CODE_OF_CONDUCT.md file for more information.

You might also like...

A docker container with a wide variety of tools for debugging and setting up micro-services

Frame One Software Placeholder There are numerous times during the dev ops deployments, that a placeholder container is needed. In the past, Frame One

May 29, 2022

Quo is a (free) debugging companion app to help you debug dumped variables, the dumped variables will appear in this Quo client instead of the traditional way which is often tedious.

Quo is a (free) debugging companion app to help you debug dumped variables, the dumped variables will appear in this Quo client instead of the traditional way which is often tedious.

Quo is a debugging companion to help you debug dumped variables, the dumped variables will appear in this Quo client instead of via the traditional way which is often tedious.

Dec 25, 2022

GraphErr is an open-source error handling library for GraphQL implementations in Deno. It's a lightweight solution that provides developers with descriptive error messages, reducing ambiguity and improving debugging.

GraphErr is an open-source error handling library for GraphQL implementations in Deno. It's a lightweight solution that provides developers with descriptive error messages, reducing ambiguity and improving debugging.

GraphErr Descriptive GraphQL error handling for Deno/Oak servers. Features Provides additional context to GraphQL's native error messaging for faster

Nov 1, 2022

🛠️ A simple GUI of Ethereum tools and utilities for debugging

Ethereum DevTools GUI A simple GUI of Ethereum tools and utilities for debugging Demo https://lab.miguelmota.com/ethereum-devtools Tools ABI viewer sh

Oct 31, 2022

1kb js library contains development debugging, error monitoring and reporting, user problem localization features

1kb js library contains development debugging, error monitoring and reporting, user problem localization features

1kb js library contains development debugging, error monitoring and reporting, user problem localization features

Dec 22, 2022

MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are still part of a flow in the AWS cloud remote.

MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are still part of a flow in the AWS cloud remote.

MerLoc MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are

Dec 21, 2022

An ADB wrapper made in node js. For mobile debugging

Adb-Wrapper An awesome ADB wrapper made in node js to use adb just with functions. · Report Bug · Request Feature Table of Contents About The Project

Dec 17, 2022

Intuitive and dynamic Chrome Dev Tool Extension for Three.js debugging

Intuitive and dynamic Chrome Dev Tool Extension for Three.js debugging

sceneSniff An intuitive and dynamic Chrome Dev Tool Extension for Three.js debugging sceneSniff is an in browser developer tool for Three.js projects.

Dec 8, 2022

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

🚀 Blog project for hacktoberfest In this repository, you can find issues related to a blog project that is built on top of Next.js. The project is a

Oct 9, 2022
Comments
  • npm start errors and circular dependency

    npm start errors and circular dependency

    Hey there! I was wondering if maybe I was doing something wrong or if there is a more up to date version of the repo somewhere. I get the below errors when I run npm ci and then npm start:

    npm start
    
    > [email protected] start
    > npm run build-ts && npm run serve
    
    
    > [email protected] build-ts
    > tsc
    
    src/deployment/redeploy.ts:2:22 - error TS2307: Cannot find module 'utils/patch-ns' or its corresponding type declarations.
    
    2 import { exec } from 'utils/patch-ns';
                           ~~~~~~~~~~~~~~~~
    
    src/deployment/redeploy.ts:51:66 - error TS7006: Parameter 'pid' implicitly has an 'any' type.
    
    51         exec(ns, `${DeployFolder}${BootstrapScript}`, HomeHost, (pid) => {
                                                                        ~~~
    
    src/processor.ts:2:22 - error TS2307: Cannot find module 'utils/patch-ns' or its corresponding type declarations.
    
    2 import { exec } from 'utils/patch-ns';
                           ~~~~~~~~~~~~~~~~
    
    src/processor.ts:10:49 - error TS7006: Parameter 'pid' implicitly has an 'any' type.
    
    10     exec(ns, '/scripts/deploy-all.js', 'home', (pid) => {
                                                       ~~~
    
    src/processor.ts:16:50 - error TS7006: Parameter 'pid' implicitly has an 'any' type.
    
    16     exec(ns, '/scripts/find-target.js', 'home', (pid) => {
                                                        ~~~
    
    
    Found 5 errors.
    

    And when I try to just do npm run watch, I get this message:

    [TypeScript] (node:42111) Warning: Accessing non-existent property 'tracing' of module exports inside circular dependency

    In a loop along with some compile errors. What are your thoughts?

    opened by Anthony-Fiddes 2
Owner
Mio Bambino
Automation, data mining, bots. Teaching and practicing realtime programming.
Mio Bambino
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Automation scripts I use for my Bitburner gameplay videos.

Bitburner Automation Note: I release a new piece of code when I finish a video segment in the series. If it's a multi-part series, the scripts will no

Chris Rabe 68 Dec 25, 2022
Repo for the official bitburner filesynchronisation package.

bitburner-filesync A file synchronisation utility for Bitburner, using the Remote File API. It allows players to synchronize scripts and text files fr

null 15 Dec 23, 2022
Bitburner source code.

Bitburner Bitburner is a programming-based incremental game that revolves around hacking and cyberpunk themes. The game can be played at https://danie

null 27 Dec 23, 2022
基于React开发的新一代web调试工具,支持React组件调试,类似于Chrome Devtools。A Lightweight, Easy To Extend Web Debugging Tool Build With React

English | 简体中文 基于React开发的移动web调试工具 更新日志 简单易用 功能全面 易扩展 高性能 使用cdn方式,一键接入 类Chrome devtools, 内嵌React开发者工具,支持日志,网络,元素,代理,存储,性能等, 具有更好的网络捕获能力和丰富的日志展现形式 暴露内部

腾讯TNTWeb前端团队 236 Dec 25, 2022
A Knative debugging tool.

__ _____.__ _____/ |__/ ____\ | ______ / ___\ __\ __\| | \____ \

Jeff 9 Oct 28, 2022
Svelte debugging tool for re-rendering components

resvelte README This is the README for your extension "resvelte". After writing up a brief description, we recommend including the following sections.

OSLabs Beta 44 Oct 4, 2022
Quickly create console debugging information for multiple languages.

Debugger for Console Quickly create console debugging information for multiple languages. This plugin uses antfu/starter-vscode as the initial templat

Chestnut 5 Oct 21, 2022