weird bug with debugargs

35 views
Skip to first unread message

Damien Courtois

unread,
Mar 16, 2017, 10:14:06 AM3/16/17
to premake-d...@googlegroups.com
Hi there, it's been a long time !
The reason I'm here is I encountered a very strange bug with the "debugargs" command. If you open the "vc2010/test_debug_settings.lua" file and modify the function "suite.debuggerCommandArgs_onDebugArgs" like this :

        debugargs { "arg1", "arg2", 200, 200, "200" }
        prepare
()
        test
.capture [[
<LocalDebuggerCommandArguments>arg1 arg2 200 200 200</LocalDebuggerCommandArguments>
       
]]

the result is :

<LocalDebuggerCommandArguments>arg1 arg2 200 200</LocalDebuggerCommandArguments>

And if you set { "arg1", "arg2", 200, 200 } then you only get arg1, arg2, 200 ... I tried playing with combinations of numerical and string arguments, and it fails in some strange ways almost everytime. Just wanted to know if someone has encountered this bug before, or has any idea what might be going on ?

Regards,
Damien

Damien Courtois

unread,
Mar 16, 2017, 10:38:00 AM3/16/17
to Premake Development
Ok, I answer to myself : debugargs misses a "allowDuplicates = true," field in its definition : one of my two "200" was being ignored because of this.
I'm going to make a pull request to fix this.
Reply all
Reply to author
Forward
0 new messages