If you go to the extension settings of the Julia extension, you see on top “Additional Args”.
Edit this in settings.json and change it, that it looks like:
    ...,
    "julia.additionalArgs": [
        "--optimize=0"
    ],
    ...,
Of course without the … lines and with your desired level 0,1,2 or 3.