Skip to content
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

This debug tool is a good idea! #8

Open
Aladdinslamp opened this issue Jul 18, 2017 · 1 comment
Open

This debug tool is a good idea! #8

Aladdinslamp opened this issue Jul 18, 2017 · 1 comment

Comments

@Aladdinslamp
Copy link

Aladdinslamp commented Jul 18, 2017

This debug tool is a good idea!

When I used the tools and add a wrong vlaue like "asdfasdf" in vscode watch, then all breakpoint will invalid. At last I find because used luadll.dll, use lualib.lib is OK, so I think it is a bug.
and in vscode-debuggee.lua I think add linefeed that will be better.

if redirectPrint then
	redirectedPrintFunction = _G.print -- 디버거가 떨어질때를 대비해서 보관한다
	_G.print = function(...)
		local t = { n = select("#", ...), ... }
		for i = 1, #t do
			t[i] = tostring(t[i])
			--add linefeed 
			t[i] = string.format("%s\r\n",t[i])
		end
		sendEvent(
			'output',
			{
				category = 'stdout',
				output = table.concat(t, '\t')
			})
	end
end
@Aladdinslamp Aladdinslamp changed the title I think this is a bug! This debug tool is a good idea! Jul 18, 2017
@evanlabs
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants