https://github.com/circlecloud/rbxts-transform-dev
A debugging transformer for roblox-ts. Contains helper functions for debugging roblox-ts code with debug information attached.
https://github.com/circlecloud/rbxts-transform-dev
Last synced: 5 months ago
JSON representation
A debugging transformer for roblox-ts. Contains helper functions for debugging roblox-ts code with debug information attached.
- Host: GitHub
- URL: https://github.com/circlecloud/rbxts-transform-dev
- Owner: circlecloud
- Created: 2024-11-20T03:37:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-20T03:37:29.000Z (over 1 year ago)
- Last Synced: 2025-10-11T15:58:41.543Z (9 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# rbxts-transform-dev
A debugging transformer for roblox-ts. Contains helper functions for debugging roblox-ts code with debug information attached.
## How to use
import types
```ts
///
```
relpace print or warn with $debug or $print or $warn
```ts
$debug(instance)
$print(instance)
$warn(instance)
throw 'error message'
```
lua output
```lua
print('[test.ts:1:1] instance =', instance);
print('[test.ts:1:1]', instance);
warn('[test.ts:1:1]', instance);
error('[test.ts:1:1] error message');
```
## Macros
### $debug
test.ts
```ts
$debug(instance);
```
output
```lua
print(`[test.ts:1:1] instance =`, instance);
```
### $print
test.ts
```ts
$print(1, 2, 3);
```
output
```lua
print('[test.ts:1:1]', 1, 2, 3);
```
### $warn
test.ts
```ts
$warn(1, 2, 3);
```
output
```lua
warn('[test.ts:1:1]', 1, 2, 3);
```
### throw
test.ts
```ts
throw "error";
const msg = "test error";
throw msg;
```
output
```lua
error('[test.ts:1:1] error');
local msg = 'test error';
error('[test.ts:3:1] ' .. msg);
```