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

Color getting weird on Windows #1184

Open
pcorbineau opened this issue Nov 29, 2024 · 2 comments
Open

Color getting weird on Windows #1184

pcorbineau opened this issue Nov 29, 2024 · 2 comments

Comments

@pcorbineau
Copy link

OS: Windows 11
VSCode version: 1.95.3
CodeLLDB version:
Compiler: v1.11.1
Debuggee: cpp cmake project (can be found here)

I opened an issue in nvim-dap project cause I thought the issue come from there. But I reproduce the issue also in vscode with codelldb so I come here to find any fixes 🙏

Here is my output in integratedTerminal mode :
lldbvscode
Here is my output in externalTerminal mode :
lldbvscodeext
Here is my output while launching target manually :
image

Verbose log
  

Here is the lldb debug output :

Initial debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'lldb',
  program: '${command:cmake.launchTargetPath}',
  args: [],
  cwd: '${command:cmake.launchTargetDirectory}',
  console: 'externalTerminal',
  __configurationTarget: 6
}
Resolved debug configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'lldb',
  program: '${command:cmake.launchTargetPath}',
  args: [],
  cwd: '${command:cmake.launchTargetDirectory}',
  console: 'externalTerminal',
  __configurationTarget: 6,
  relativePathBase: 'd:\\personal\\workspace\\test-sandbox',
  _adapterSettings: {
    displayFormat: 'auto',
    showDisassembly: 'auto',
    dereferencePointers: true,
    suppressMissingSourceFiles: true,
    evaluationTimeout: 5,
    consoleMode: 'commands',
    sourceLanguages: null,
    scriptConfig: {},
    terminalPromptClear: null,
    evaluateForHovers: true,
    commandCompletions: true,
    reproducer: false
  }
}
liblldb: c:\Users\pcorbineau\.vscode\extensions\vadimcn.vscode-lldb-1.11.1\lldb\bin\liblldb.dll
environment: {}
settings: { evaluateForHovers: true, commandCompletions: true }
[DEBUG codelldb] Connecting to 127.0.0.1:54156
[DEBUG codelldb] New debug session
[DEBUG codelldb::dap_codec] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true,"supportsANSIStyling":true},"type":"request","seq":1}
[DEBUG codelldb::dap_codec] <-- {"seq":1,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"cpp_throw","label":"C++: on throw","supportsCondition":true},{"default":false,"filter":"cpp_catch","label":"C++: on catch","supportsCondition":true}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsClipboardContext":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsDisassembleRequest":true,"supportsEvaluateForHovers":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsInstructionBreakpoints":true,"supportsLogPoints":true,"supportsModulesRequest":true,"supportsReadMemoryRequest":true,"supportsRestartRequest":true,"supportsSetVariable":true,"supportsStepInTargetsRequest":true,"supportsSteppingGranularity":true,"supportsWriteMemoryRequest":true}}
[DEBUG codelldb::dap_codec] --> {"command":"launch","arguments":{"type":"lldb","request":"launch","name":"lldb","program":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","args":[],"cwd":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests","console":"externalTerminal","__configurationTarget":6,"relativePathBase":"d:\\personal\\workspace\\test-sandbox","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"scriptConfig":{},"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true,"reproducer":false},"__sessionId":"8c96bf0e-aee3-444d-8e32-462f4ba3af59"},"type":"request","seq":2}
[DEBUG codelldb::dap_codec] <-- {"seq":2,"type":"event","event":"output","body":{"category":"console","output":"Console is in 'commands' mode, prefix expressions with '?'.\n"}}
INFO(Python) 10:29:03 lang_support: languages: []
[DEBUG codelldb::dap_codec] <-- {"seq":3,"type":"event","event":"initialized"}
[DEBUG codelldb::dap_codec] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
[DEBUG codelldb::dap_codec] <-- {"seq":4,"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::dap_codec] --> {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
[DEBUG codelldb::dap_codec] --> {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"cpp_throw"}]},"type":"request","seq":5}
[DEBUG codelldb::dap_codec] <-- {"seq":5,"type":"response","request_seq":4,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::dap_codec] --> {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
[DEBUG codelldb::dap_codec] <-- {"seq":6,"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints"}
[DEBUG codelldb::dap_codec] <-- {"seq":7,"type":"response","request_seq":6,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6A80 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: breakpoint added}
[DEBUG codelldb::dap_codec] --> {"command":"configurationDone","type":"request","seq":7}
[DEBUG codelldb::dap_codec] <-- {"seq":8,"type":"request","command":"runInTerminal","arguments":{"args":["c:\\Users\\pcorbineau\\.vscode\\extensions\\vadimcn.vscode-lldb-1.11.1\\adapter\\codelldb.exe","terminal-agent","--connect=54158"],"cwd":"","kind":"external","title":"lldb"}}
[DEBUG codelldb::dap_codec] --> {"type":"response","seq":8,"command":"runInTerminal","request_seq":8,"success":true,"body":{}}
[DEBUG codelldb::dap_codec] <-- {"seq":9,"type":"event","event":"output","body":{"category":"console","output":"Launching: D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe\n"}}
[adapter\codelldb\src\terminal.rs:105:13] winapi::um::wincon::FreeConsole() = 1
[DEBUG codelldb::dap_codec] <-- {"seq":10,"type":"event","event":"output","body":{"category":"console","output":"Launched process 24272\n"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6240 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {lib-gtest.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":11,"type":"response","request_seq":2,"success":true,"command":"launch"}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6780 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000004 (modules-unloaded), data = {lib-gtest.exe, lib-gtest.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":12,"type":"response","request_seq":7,"success":true,"command":"configurationDone"}
[DEBUG codelldb::dap_codec] <-- {"seq":13,"type":"event","event":"module","body":{"module":{"addressRange":"7FF6B0370000","id":"7FF6B0370000","name":"lib-gtest.exe","path":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolFilePath":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6A80 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed}
[DEBUG codelldb::dap_codec] <-- {"seq":14,"type":"event","event":"module","body":{"module":{"id":"7FF6B0370000","name":""},"reason":"removed"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6C00 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {lib-gtest.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":15,"type":"event","event":"module","body":{"module":{"id":"7FF6B0370000","name":""},"reason":"removed"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C7140 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {lib-gtest.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":16,"type":"event","event":"module","body":{"module":{"addressRange":"7FF6B0370000","id":"7FF6B0370000","name":"lib-gtest.exe","path":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolFilePath":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6840 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":17,"type":"event","event":"module","body":{"module":{"addressRange":"7FF6B0370000","id":"7FF6B0370000","name":"lib-gtest.exe","path":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolFilePath":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C6900 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ntdll.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":18,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE28110000","id":"7FFE28110000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C7200 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":19,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE28110000","id":"7FFE28110000","name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","symbolFilePath":"C:\\Windows\\System32\\ntdll.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":20,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE263A0000","id":"7FFE263A0000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C75C0 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel32.dll}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C7680 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":21,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE263A0000","id":"7FFE263A0000","name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","symbolFilePath":"C:\\Windows\\System32\\kernel32.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C7800 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {KernelBase.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":22,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE25710000","id":"7FFE25710000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECC6C7980 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp140d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":23,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE25710000","id":"7FFE25710000","name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","symbolFilePath":"C:\\Windows\\System32\\KernelBase.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":24,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDD7680000","id":"7FFDD7680000","name":"msvcp140d.dll","path":"C:\\Windows\\System32\\msvcp140d.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp140d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1DBD0 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcp140d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":25,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDD7680000","id":"7FFDD7680000","name":"msvcp140d.dll","path":"C:\\Windows\\System32\\msvcp140d.dll","symbolFilePath":"C:\\Windows\\System32\\msvcp140d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D090 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbased.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":26,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDB3570000","id":"7FFDB3570000","name":"ucrtbased.dll","path":"C:\\Windows\\System32\\ucrtbased.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbased.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1EE90 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {ucrtbased.dll}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1E410 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140_1d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":27,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDB3570000","id":"7FFDB3570000","name":"ucrtbased.dll","path":"C:\\Windows\\System32\\ucrtbased.dll","symbolFilePath":"C:\\Windows\\System32\\ucrtbased.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1DA50 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140_1d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":28,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDED2E0000","id":"7FFDED2E0000","name":"vcruntime140_1d.dll","path":"C:\\Windows\\System32\\vcruntime140_1d.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140_1d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1E4D0 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":29,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDED2E0000","id":"7FFDED2E0000","name":"vcruntime140_1d.dll","path":"C:\\Windows\\System32\\vcruntime140_1d.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140_1d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1E050 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {vcruntime140d.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":30,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDD9980000","id":"7FFDD9980000","name":"vcruntime140d.dll","path":"C:\\Windows\\System32\\vcruntime140d.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D210 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {lib-gtest.exe}
[DEBUG codelldb::dap_codec] <-- {"seq":31,"type":"event","event":"module","body":{"module":{"addressRange":"7FFDD9980000","id":"7FFDD9980000","name":"vcruntime140d.dll","path":"C:\\Windows\\System32\\vcruntime140d.dll","symbolFilePath":"C:\\Windows\\System32\\vcruntime140d.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBC528A0 Event: broadcaster = 0000020ECBFDA018 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0000020ECBFD9FF0 (pid = 24272), state = running}
[DEBUG codelldb::dap_codec] <-- {"seq":32,"type":"event","event":"module","body":{"module":{"addressRange":"7FF6B0370000","id":"7FF6B0370000","name":"lib-gtest.exe","path":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolFilePath":"D:\\personal\\workspace\\test-sandbox\\build\\Debug\\tests\\lib-gtest.exe","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":33,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":5028}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1E650 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel.appcore.dll}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D750 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {kernel.appcore.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":34,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE24410000","id":"7FFE24410000","name":"kernel.appcore.dll","path":"C:\\Windows\\System32\\kernel.appcore.dll","symbolFilePath":"C:\\Windows\\System32\\kernel.appcore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":35,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE24410000","id":"7FFE24410000","name":"kernel.appcore.dll","path":"C:\\Windows\\System32\\kernel.appcore.dll","symbolFilePath":"C:\\Windows\\System32\\kernel.appcore.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] --> {"command":"threads","type":"request","seq":9}
[DEBUG codelldb::dap_codec] <-- {"seq":36,"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[{"id":5028,"name":"2: tid=5028"},{"id":14452,"name":"1: tid=14452"},{"id":15912,"name":"4: tid=15912"},{"id":26492,"name":"3: tid=26492"}]}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D090 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D210 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000002 (modules-loaded), data = {msvcrt.dll}
[DEBUG codelldb::dap_codec] <-- {"seq":37,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE26A50000","id":"7FFE26A50000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::dap_codec] <-- {"seq":38,"type":"event","event":"module","body":{"module":{"addressRange":"7FFE26A50000","id":"7FFE26A50000","name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","symbolFilePath":"C:\\Windows\\System32\\msvcrt.dll","symbolStatus":"Symbols loaded."},"reason":"new"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1DF90 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000004 (modules-unloaded), data = {lib-gtest.exe}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBE1D810 Event: broadcaster = 0000020ECCA7E5A8 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {bkpt: 1 type: locations removed}
[DEBUG codelldb::dap_codec] <-- {"seq":39,"type":"event","event":"module","body":{"module":{"id":"FFFFFFFFFFFFFFFF","name":""},"reason":"removed"}}
[DEBUG codelldb::debug_session] Debug event: 0000020ECBC52110 Event: broadcaster = 0000020ECBFDA018 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0000020ECBFD9FF0 (pid = 24272), state = exited}
[DEBUG codelldb::dap_codec] <-- {"seq":40,"type":"event","event":"output","body":{"category":"console","output":"Process exited with code 1.\n"}}
[DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"event","event":"exited","body":{"exitCode":1}}
[DEBUG codelldb::dap_codec] <-- {"seq":42,"type":"event","event":"terminated","body":{}}
[DEBUG codelldb::dap_codec] --> {"command":"disconnect","arguments":{"restart":false,"terminateDebuggee":false},"type":"request","seq":10}
[DEBUG codelldb::dap_codec] <-- {"seq":43,"type":"response","request_seq":10,"success":true,"command":"disconnect"}
[DEBUG codelldb::dap_session] Client has disconnected
[DEBUG codelldb::debug_session] End of the requests stream
[DEBUG codelldb::debug_session] DebugSession::drop()
[DEBUG codelldb] End of the debug session
[DEBUG codelldb] Exiting
Debug adapter exit code=0 (0x0), signal=null.
@vadimcn
Copy link
Owner

vadimcn commented Nov 30, 2024

Why do you think it's codelldb, and not gtest messing up the colors?

@pcorbineau
Copy link
Author

Im not sure its codelldb but I want to find who is the culprit of this issue.
Getting those colors with gtest, catch2 and doctest. But running the executable manually is working normally. Only getting weird color in those setups :

  • Neovim + codelldb + nvim-dap + (gtest, doctest, catch2) executable
  • Neovim + cpptools + nvim-dap + (gtest, doctest, catch2) executable (THATS why im not sure the issue come from lldb but someone here can probably help me)
  • Vscode + codelldb + (gtest, doctest, catch2) executable

No color issue in :

  • Vscode + cppvsdbg + (gtest, doctest, catch2) executable
  • running manually (gtest, doctest, catch2) executable
  • running in Neovim with :term command (gtest, doctest, catch2) executable

I read a lot of issues here to found any solution, someone says that those test framework wrote into stderr. Maybe issue came from here ?

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