Original post


didn’t find any setup that like i can do in the launch config, here is example

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
            "name": "Launch",
            "type": "",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "env": {},
            "args": [

(*testing.T).Log doesn’t actually print out logged messages unless a test fails. Calls to Log are cached and then after the test completes, the testing package checks if it failed or succeeded. If it failed, all log events are printed with the hope that it’ll help the user identify the problem. If it succeeds, then there’s no reason to print the logs.

If you want to force the log messages to print, then add this to your user settings JSON file in VS code:

    "go.testFlags": [