support

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 7,753 total)
  • Author
    Posts
  • in reply to: Missing locale setting #35636
    support
    Keymaster

    Hi,

    Thanks for the screenshots. For this project type you can override the LANG variable via VisualGDB Project Properties as shown below:

    Attachments:
    You must be logged in to view attached files.
    in reply to: Missing locale setting #35631
    support
    Keymaster

    Hi,

    The exact setting depends on how your project is setup. If you would like us to point out a specific setting, please make sure you can reproduce the problem on a new project created from scratch, and than share the screenshots showing how the project was created (every step of the wizard and every other window where you changed any settings).

    in reply to: Missing locale setting #35629
    support
    Keymaster

    Hi,

    VisualGDB forces the locale to be en_US.UTF-8 as otherwise some build tools would show localized error messages, confusing the message parsing logic (e.g. trying to understand the base directory for the relative paths in subsequent messages).

    You can try overriding the environment of the CMake/Make commands via VisualGDB Project Properties -> Build Settings. It should override the default value.

    in reply to: Autocomplete only on Tab press #35623
    support
    Keymaster

    Hi,

    VisualGDB’s code completion has 2 levels of confidence:

    • If the string you typed exactly matches the beginning of a suggestion, (e.g. you typed “print” and it found “printf”), typing any non-identifier character (space, opening bracket, comma, etc) will trigger a completion and will insert the character you typed.
    • If the string loosely matches the suggestion (e.g. you typed “ncmp” and if found “wcsncmp” or you typed “pascope” and it found “pthread_attr_getscope), it is considered a low-confidence match, so it will only get completed if you press tab. Otherwise it will insert what you typed as if there was no completion popup.

    Normally, this should avoid inserting the wrong suggestions, while still giving you the possibility to find functions or variables if you don’t know the exact name. If you keep getting incorrect completions, feel free to share more details with an exact example of what you are typing and what VisualGDB suggests, and we will look further into it.

    in reply to: Unittest support for imported projects #35618
    support
    Keymaster

    Hi,

    Sure, you can do that. In principle, you would need to have 3 things:

    1. The project should reference the unit test framework via VisualGDB Project Properties -> Unit Tests. Even if you don’t end up using the actual framework, simply having it referenced there will make VisualGDB look for tests in the project.
    2. The binary produced by the project should actually contain the test symbols usually produced by GoogleTest. You can search for TestDiscoverers  in %LOCALAPPDATA%\VisualGDB\TestFrameworks\com.sysprogs.unittest.googletest\TestFramework.xml to get a basic idea of what VisualGDB is looking for.
    3. The project’s main() function should actually pass control to the unit test framework, and the framework should contain our patches for selecting the tests via debugger, and for reporting test results via semihosting.

    The easiest way to do it without using find_bsp/find_test_framework is to create a simple test project using the wizard, see what exact files (with what parameters) are included in it, and then reconstruct it in your own project.

    in reply to: element template for cmake project #35592
    support
    Keymaster

    Hi,

    Sure, VisualGDB has a mechanism for customizing both target and item templates, although it wasn’t documented much.

    We have added a page explaining it here: https://visualgdb.com/documentation/cmake/templates/

    in reply to: FreeRTOS debug with STMCubeMX projects #35589
    support
    Keymaster

    Hi,

    No worries. For what it’s worth, the FreeRTOS Live Watch functionality is implemented in a separate open-source plugin, so you can always tweak it if your setup involves something very specific that otherwise doesn’t work.

    in reply to: Qt5 Project on Raspberry Pi 5 Bookworm #35580
    support
    Keymaster

    Thanks, the “undefined reference” error is actually a glitch in the new 64-bit Raspberry Pi toolchain.

    Please try creating the <SysGCC>\raspberry64\aarch64-linux-gnu\sysroot\etc\ld.so.conf file with the following contents:

    /opt/vc/lib
    # Multiarch support
    /lib/aarch64-linux-gnu
    /usr/lib/aarch64-linux-gnu
    /usr/lib/aarch64-linux-gnu/libfakeroot
    # libc default configuration
    /usr/local/lib

    We have also updated the toolchain on our side to include this file out-of-the-box.

    • This reply was modified 10 months, 1 week ago by support. Reason: updated path
    in reply to: Qt5 Project on Raspberry Pi 5 Bookworm #35578
    support
    Keymaster

    Hi,

    Thanks for renewing. Please make sure you update to VisualGDB 6.0, then follow the steps below:

    1. Delete the toolchain you have.
    2. Download a toolchain from here that matches your SD card image.
    3. Make sure you can build and debug a basic executable (non Qt-based) using that toolchain. If it doesn’t work, replace your SD card contents with a fresh image per our toolchain list.
    4. Once the basic program works, follow our Qt/CMake tutorial to get everything working.
    support
    Keymaster

    Hi,

    Thanks, we have linked your key to your profile. Regarding this error, please try enabling View->Other Windows->VisualGDB Diagnostics Console and starting a profiling session without debugging.

    If it still doesn’t work, please take a note of the valgrind command line shown in the VisualGDB diagnostics console. It will show the path to the profiled program and some other arguments.

    Please then try manually running valgrind with that program without any other options, e.g.

    valgrind /tmp/my-program

    Does valgrind work when launched manually? If yes, please post the exact command line you captured from VisualGDB Diagnostics Console and the exact command that worked manually.

    in reply to: Qt5 Project on Raspberry Pi 5 Bookworm #35573
    support
    Keymaster

    Hi,

    It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey

    in reply to: Set relative path to toolchain in project file(s) #35565
    support
    Keymaster

    Hi,

    The file is automatically updated when VisualGDB is loaded inside Visual Studio. Just installing the toolchain outside VisualGDB won’t change it.

    You can try running VisualGDB.exe /pkgmgr to force VisualGDB to reload the toolchain list.

    If it doesn’t help, something else could be preventing VisualGDB from rebuilding the file. In this case please try renaming the file, restarting Visual Studio and creating a new MSBuild project using one of the toolchains using the wizard. If the file is not regenerated after it (or is missing some toolchains), please let us know and we will investigate it further.

    in reply to: Set relative path to toolchain in project file(s) #35563
    support
    Keymaster

    Hi,

    Thanks for renewing your licenses. We will be happy to help.

    For MSBuild projects, VisualGDB locates the toolchains as shown below:

    1. The .vcxproj file defines the ToolchainID and ToolchainVersion variables.
    2. MSBuild loads the %LOCALAPPDATA%\VisualGDB\FindToolchain.props file that matches these variables against a list of installed toolchains, and sets ToolchainDir.
    3. The rest of the build rules run the compiler and other tools from ToolchainDir.

    Normally, this should only find the toolchain if both ID and version match, or the version is not specified. However, modifications to project files or FindToolchain.props (e.g. hardcoding the toolchain directory) would interfere with it.

    We would suggest double-checking the relevant variable definitions in the .vcxproj file and FindToolchain.props. E.g. you can try setting the version, ID, or the toolchain directory to completely broken values that would trigger a build error to see which of the statements get actually processed. It may turn out that some other property sheet or imported project file overrides some of the variables in a completely unexpected way.

    in reply to: Non-existent Support #35560
    support
    Keymaster

    You can use the following trial extension voucher to get extra 15 days of the trial: [removed]

    In Visual Studio try starting the VisualGDB trial, if you have exceeded the trial days then it will fail and display a field to enter the trial extension voucher code. If you are currently using the trial then the field will also appear once your trial ends. The extra trial time will start counting down only once you use the trial extension code.

    Feel free to contact us for support if you have any questions or issues setting up your projects with VisualGDB.

    • This reply was modified 10 months, 1 week ago by support. Reason: removed voucher code
    in reply to: Non-existent Support #35558
    support
    Keymaster

    Hi,

    We have received all 6 emails from you and answered all of them within a day each. However, it looks like your spam filter is deleting our replies.

    We do not know why it blocks the replies from our ticket system, but not from the forum. Either way, you can post your questions here if you prefer. We treat email inquiries and forum inquiries the same way and try to answer them within 2 business days.

    Regarding that specific error, it looks like something in your system is indeed resetting the environment variables for the Visual Studio process. It could be a bug in the antivirus software, or some particular global settings you configured earlier. Either way, VisualGDB requires the VISUALGDB_DIR environment variable to point to its installation directory, which is normally configured automatically by the VisualGDB’s installer, but can also be set manually via regular Windows settings. If something is resetting that variable, you would need to find out what program is causing it, and find a way to disable it.

Viewing 15 posts - 211 through 225 (of 7,753 total)