<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Zach,<div class=""><br class=""></div><div class="">I appreciate that.  The -debug option is apparently not known in this context, this is what the console pops up immediately:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">[0;1;31merror: [0munknown argument: '-debug'[0m</b></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Program ended with exit code: 1</b></span></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><br class=""></b></span></div><div style="margin: 0px; line-height: normal;" class="">I believe this is now a more general issue because all sort of output to the console is missing, not only LLVM_DEBUG() macro statements. It seems to me that I need to redirect console output to the ide console somehow. This is apparently done automatically when debugging the main thread in the usual way, but it’s not working in this case. Still, having working breakpoints and debug variables is a great improvement. So thanks for that.</div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">John.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 4 Nov 2019, at 22:51, Zachary Turner <<a href="mailto:zturner@roblox.com" class="">zturner@roblox.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I'm not very familiar with this macro, as it seems to be new, but looking at llvm/include/llvm/Support/Debug.h it has this comment:<div class=""><br class=""></div><div class="">// In particular, just wrap your code with the LLVM_DEBUG() macro, and it will<br class="">// be enabled automatically if you specify '-debug' on the command-line.<br class="">// LLVM_DEBUG() requires the DEBUG_TYPE macro to be defined. <br class=""></div><div class=""><br class=""></div><div class="">So, perhaps you should try adding -debug to your command line and seeing if that fixes the problem.</div><div class=""><br class=""></div><div class="">If that doesn't fix it, someone else may need to help as I'm not familiar with this issue specifically.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:47 PM Joan Lluch <<a href="mailto:joan.lluch@icloud.com" class="">joan.lluch@icloud.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Sorry Zach, my apologies. <div class=""><br class=""></div><div class="">I understood now what you mean. I tried and it works!. <div class=""><br class=""></div><div class="">But now I found that LLVM_DEBUG statements and other output to the console doesn’t show. How do I get that back?.<div class=""><br class=""></div><div class="">Thanks </div><div class=""><br class=""></div><div class="">John <div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 4 Nov 2019, at 22:26, Zachary Turner <<a href="mailto:zturner@roblox.com" target="_blank" class="">zturner@roblox.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">You hit Reply on my email but then addressed David.  So I want to make sure you saw my suggestion.  Let me know if you tried that and/or whether or not it solved your problem.<div class=""><br class=""></div><div class="">Zach</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:23 PM Joan Lluch <<a href="mailto:joan.lluch@icloud.com" target="_blank" class="">joan.lluch@icloud.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Hi David,<div class=""><br class=""></div><div class="">I understand what you say, but have you actually read my messages? I don’t think so,</div><div class=""><br class=""></div><div class="">Anyway, I will repost the question in case someone else can help.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">John</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On 4 Nov 2019, at 22:18, Zachary Turner <<a href="mailto:zturner@roblox.com" target="_blank" class="">zturner@roblox.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:11 PM Joan Lluch via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Hi David,<div class=""><br class=""></div><div class="">Thank you for your patience but I still don’t get it:  I don’t see how that is a “command”, as it’s just a list of strings that state command options.</div><div class=""><br class=""></div></div></blockquote><div class="">This is the output you pasted after running the command:</div><div class=""><br class=""></div><div class=""><span style="color:rgb(80,0,80)" class="">> "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/bin/clang" "-cc1" "-triple" "msp430" "-emit-llvm" "-disable-free" "-main-file-name" "main.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc" "-dwarf-column-info" "-debugger-tuning=gdb" "-target-linker-version" "305" "-momit-leaf-frame-pointer" "-coverage-notes-file" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)" class="">Relay/RelayNou/main.gcno" "-resource-dir" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/lib/clang/</span><span style="color:rgb(80,0,80)" class="">9.0.1" "-internal-isystem" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/bin/../</span><span style="color:rgb(80,0,80)" class="">msp430/include" "-Oz" "-fdebug-compilation-dir" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)" class="">Relay/RelayNou" "-ferror-limit" "19" "-fmessage-length" "224" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-faddrsig" "-o" "main.ll" "-x" "c" "main.c"</span> </div><div class=""><br class=""></div><div class="">Yes it is a list of strings.  But the first string <span style="color:rgb(80,0,80)" class="">"/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/bin/clang" is a command.  The rest are arguments.  So you should set your debugger to run this command:</span></div><div class=""><span style="color:rgb(80,0,80)" class=""><br class=""></span></div><div class=""><span style="color:rgb(80,0,80)" class="">"/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/bin/clang"</span> </div><div class=""><br class=""></div><div class="">with these arguments:</div><div class=""><br class=""></div><div class=""><span style="color:rgb(80,0,80)" class="">"-cc1" "-triple" "msp430" "-emit-llvm" "-disable-free" "-main-file-name" "main.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc" "-dwarf-column-info" "-debugger-tuning=gdb" "-target-linker-version" "305" "-momit-leaf-frame-pointer" "-coverage-notes-file" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)" class="">Relay/RelayNou/main.gcno" "-resource-dir" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/lib/clang/</span><span style="color:rgb(80,0,80)" class="">9.0.1" "-internal-isystem" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)" class="">project/build/Debug/bin/../</span><span style="color:rgb(80,0,80)" class="">msp430/include" "-Oz" "-fdebug-compilation-dir" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)" class="">Relay/RelayNou" "-ferror-limit" "19" "-fmessage-length" "224" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-faddrsig" "-o" "main.ll" "-x" "c" "main.c"</span><span style="color:rgb(80,0,80)" class=""><br class=""></span></div><div class=""><span style="color:rgb(80,0,80)" class=""><br class=""></span></div><div class=""><span style="color:rgb(80,0,80)" class="">Does that make sense?</span></div></div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>