https://linen.dev logo
Join Discord
Powered by
# lime
  • g

    gray-vase-27987

    03/17/2023, 5:59 PM
    tryna find the cause
  • g

    gray-vase-27987

    03/17/2023, 6:00 PM
    i THINK i did but when i went back to msvc it kept happening
  • p

    powerful-morning-89

    03/17/2023, 6:01 PM
    And how would mingw help with debugging a silent crash? Just run your binary with a debugger. Visual Studio has one builtin, and VSCode has extensions.
  • g

    gray-vase-27987

    03/17/2023, 6:01 PM
    yes i mean the kind of silent crash vscode doesnt catch
  • g

    gray-vase-27987

    03/17/2023, 6:02 PM
    it just hard cuts to ECONRESET which i've learned meant "vscode has lost connection to your program"
  • p

    powerful-morning-89

    03/17/2023, 6:02 PM
    Huh, interesting. But I still don't see how mingw would help.
  • g

    gray-vase-27987

    03/17/2023, 6:03 PM
    it kind of did, a little, using mingw meant i could run it through GDB
  • p

    powerful-morning-89

    03/17/2023, 6:03 PM
    (Also, which debugger are you using. An actual C++ debugger, or the hxcpp one?)
  • a

    able-action-74275

    03/17/2023, 6:03 PM
    gdb lol
  • g

    gray-vase-27987

    03/17/2023, 6:03 PM
    usually i use uhh
  • g

    gray-vase-27987

    03/17/2023, 6:03 PM
    the hxcpp one i think?
  • g

    gray-vase-27987

    03/17/2023, 6:03 PM
    im not really sure what identifies what vscode uses when i tell it todebug
  • g

    gray-vase-27987

    03/17/2023, 6:03 PM
    probably hxcpp cause its doing a hxcpp debug server
  • p

    powerful-morning-89

    03/17/2023, 6:04 PM
    Right, when I say debugger I mean an actual debugger like the one built in to Visual Studio, not the hxcpp one.
  • p

    powerful-morning-89

    03/17/2023, 6:04 PM
    There's probably a segfault happening somewhere, and I don't think the hxcpp debugger can catch those.
  • g

    gray-vase-27987

    03/17/2023, 6:07 PM
    speaking of crashes the code im working off of had a crash handler implemented to it but im not even sure what kind of crashes these are meant for
  • g

    gray-vase-27987

    03/17/2023, 6:07 PM
    ive rarely used visual studio or whatever it was like, as a program was crashing
  • g

    gray-vase-27987

    03/17/2023, 6:07 PM
    but ive never like, used it beforehand
  • g

    gray-vase-27987

    03/17/2023, 6:07 PM
    how would i set a vs debugger up
  • p

    powerful-morning-89

    03/17/2023, 6:11 PM
    The easiest would probably be to use vscode + Just point the debug configuration at the executable and press launch. You can also use Visual Studio, but I'm not entirely sure how you'd debug a standalone binary with it (I usually use Linux, so I'm not that familiar with VS)
  • g

    gray-vase-27987

    03/17/2023, 6:12 PM
    oh vscode has that installed for me already
  • g

    gray-vase-27987

    03/17/2023, 6:12 PM
    so currently my debug configuration just says "lime"
  • g

    gray-vase-27987

    03/17/2023, 6:13 PM
    and i cannn
  • p

    powerful-morning-89

    03/17/2023, 6:14 PM
    C/C++: (Windows) Launch is the one you want
  • p

    powerful-morning-89

    03/17/2023, 6:14 PM
    You'll need to point it at the executable in
    export/windows/bin
    (and set export/windows/bin as working directory)
  • g

    gray-vase-27987

    03/17/2023, 6:14 PM
    right
  • a

    ambitious-knife-25690

    03/17/2023, 6:15 PM
    that should be fine to use
  • g

    gray-vase-27987

    03/17/2023, 6:15 PM
    thats cwd, and it says "${fileDirname}
  • a

    ambitious-knife-25690

    03/17/2023, 6:15 PM
    iirc lime sets up the debug config on the selected display config
  • g

    gray-vase-27987

    03/17/2023, 6:15 PM
    theres a lot of context here . the most impotant thing is that theres an error hxcpp isnt catching
1...848586...138Latest