Commit Graph

203 Commits

Author SHA1 Message Date
slembcke ae9192945c disable test I/O logging 2024-08-18 13:23:20 -05:00
slembcke 6537148140 Merge branch 'go-cmd' of github.com:aleclarson/lua-debugger into dev 2024-08-18 13:22:16 -05:00
slembcke 68cb653dd5 adding more tests 2024-08-18 12:26:52 -05:00
Scott Lembcke 8b83bde7cb
Merge pull request #82 from N-R-K/readline-fix
fix readline support on luajit
2024-08-18 10:58:03 -05:00
Scott Lembcke 82b0a05e23
Merge pull request #81 from N-R-K/assert-fix
fix trying to concat nil value on dbg.assert
2024-08-18 10:57:09 -05:00
slembcke 39821a8d95 Merge branch 'master' of github:slembcke/debugger.lua 2024-08-01 13:22:27 -05:00
slembcke 2bf0d2a836 update some docs 2024-08-01 13:22:08 -05:00
Scott Lembcke f538d6642b
Merge pull request #83 from suy/minor-fixes
Minor fixes: README markup and tutorial line number
2024-07-30 14:36:15 -05:00
slembcke e074042969 Merge branch 'dev' 2024-07-30 14:28:00 -05:00
slembcke ad04ce29ba add some C docs 2024-07-30 14:27:22 -05:00
slembcke 3448de65dd better testing and use SPDX license identifiers 2024-07-30 14:12:39 -05:00
Scott Lembcke 574c9ccf8c
Update README.md 2024-07-30 11:53:45 -05:00
Scott Lembcke 521d233e5d
Update README.md 2024-07-26 19:43:37 -05:00
Alejandro Exojo bac047454b Minor fixes: README markup and tutorial line number 2024-06-16 18:17:02 +02:00
NRK 886d07a3f8 fix readline support on luajit
regression added in f4ca4eac

Closes: https://github.com/slembcke/debugger.lua/issues/80
2023-12-08 22:04:33 +06:00
NRK a92235288b fix trying to concat nil value on dbg.assert
message is optional and should default to "assertion failed!"
2023-12-08 17:28:06 +06:00
slembcke a37cc46213 Make dbg.pretty() overloadable. 2023-03-02 09:51:45 -06:00
slembcke 1ddfb6b29b Update copyright 2023-02-12 12:37:38 -06:00
Scott Lembcke f4a2028c62
Merge pull request #77 from PatrickDahlin/master
isatty fix for luvit runtime
2022-03-01 00:09:35 -06:00
Patrick Dahlin 2819ae6eab isatty fix 2022-02-27 14:29:14 +02:00
slembcke b0a04f0193 copypasta fix 2021-09-07 19:31:36 -05:00
slembcke d475cb8e5b Merge branch 'patch-1' of git://github.com/lua-rocks/debugger.lua 2021-08-10 14:36:44 -05:00
slembcke b6f0490fa4 Merge branch 'master' of github:slembcke/debugger.lua 2021-08-10 14:22:24 -05:00
slembcke 5d2d46d8eb readme 2021-08-10 14:19:48 -05:00
luarocks 07c9c295d9
Fix: pass luacheck, make global functions local
Most of these changes are not important and was made just to get rid of annoying luacheck warnings, but some functions in your code was declared globally, so this fix is not decorative :)
2021-08-05 14:58:00 +03:00
slembcke 996e0a235d legibility 2021-06-18 01:37:47 -05:00
slembcke 5e4295ee54 Fix where command regression. 2021-06-18 01:09:54 -05:00
slembcke f8656f24c3 fixed screenshot 2021-06-15 14:55:57 -05:00
slembcke ec321992a0 Update readme 2021-06-15 14:38:31 -05:00
slembcke df8d47b208 cleanup 2021-06-15 14:12:27 -05:00
slembcke 2b94d8781d Handle unknown file gracefully 2021-06-15 11:46:50 -05:00
Scott Lembcke cb76153c31
Merge pull request #73 from thirtythreeforty/bugfixes
Bug fixes for various corner cases
2021-05-28 11:30:42 -05:00
George Hilliard d680df2dea debugger.lua: Fix behavior of assert() to return value like Lua's assert
assert() returns its first argument when it passes.
2021-05-28 14:46:38 +00:00
George Hilliard 1d7add4dee debugger.lua: Fix internal error when concat'ing table errors
It is possible to emit other objects such as tables as errors. debugger
emits an ugly error and crashes:

	INTERNAL DEBUGGER.LUA ERROR. ABORTING
	: debugger.lua:317: attempt to concatenate a table value (local 'err')
	Debugger stopped on error(): "\27[91mINTERNAL DEBUGGER.LUA ERROR. ABORTING\
	:\27[0m ...debugger.lua:317: attempt to concatenate a table value (local 'err')"
	debugger.lua:534: INTERNAL DEBUGGER.LUA ERROR. ABORTING
	: debugger.lua:317: attempt to concatenate a table value (local 'err')
	stack traceback:
		[C]: in upvalue 'lua_error'
		...debugger.lua:534: in function 'error'
		...debugger.lua:491: in upvalue 'repl'
		...debugger.lua:132: in hook '?'
		[C]: in ?
2021-05-28 14:46:36 +00:00
George Hilliard a844fdca45 debugger.lua: Fix prompt display in Busybox
Busybox does not flush I/O until a newline.  Explicitly flush so the
user sees the debugger prompt.
2021-05-28 14:46:11 +00:00
slembcke 8999abb846 Tested against lua 5.4 2020-08-11 00:48:57 -05:00
slembcke 051988302a Fix dbg_writeln() format string injection bug. 2020-08-10 11:51:16 -05:00
slembcke e343805877 Slightly more robust where command for load()ed string blocks. 2020-05-13 18:54:55 -05:00
slembcke 66f4a94077 More minor presentation changes. 2020-05-12 13:59:24 -05:00
slembcke 9d5ce2ff28 Merge branch 'dev' 2020-05-11 23:34:42 -05:00
slembcke add93a1e54 Output format updates for tests. 2020-05-11 21:57:01 -05:00
slembcke 003d5a6bed Merge branch 'master' of github:slembcke/debugger.lua 2020-05-11 21:37:15 -05:00
slembcke ed2cf29dc0 Minor format fix. 2020-05-11 21:35:11 -05:00
Scott Lembcke e049cddb97
Update README.md 2020-05-11 21:31:50 -05:00
Scott Lembcke 5bc3ffd3cd
Update README.md 2020-05-11 21:22:20 -05:00
slembcke 6929dc210e More colors! 2020-05-11 21:19:12 -05:00
slembcke a6da264872 Merge branch 'master' of github:slembcke/debugger.lua 2020-05-11 20:13:03 -05:00
slembcke 8814e946cd Updating automated tests for new strings. 2020-05-11 20:12:55 -05:00
Scott Lembcke ececceaf84
Update README.md 2020-05-11 19:02:06 -05:00
slembcke 7d33769b9b More presentation changes. 2020-05-11 18:57:01 -05:00