question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every time you press F5, the selection environment will pop up

See original GitHub issue

Pressing the F5 key does not directly start debug. Instead, the select environment prompt box appears every time. 动画

sudo docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e PASSWORD=password \
  -e SUDO_PASSWORD=0415oo \
  -e PROXY_DOMAIN=linuxserver.666baby.com  \
  -p 8443:8443 \
  -v /path/to/appdata/config:/config \
  --restart unless-stopped \
linuxserver/code-server

apache config

<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/code.666baby.com/linuxserver.666baby.com"
    ServerName fd96025a.linuxserver.666baby.com
    ServerAlias linuxserver.666baby.com
    #errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/linuxserver.666baby.com-error_log"
    CustomLog "/www/wwwlogs/linuxserver.666baby.com-access_log" combined
    #HTTP_TO_HTTPS_START
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R=301]
    </IfModule>
    #HTTP_TO_HTTPS_END
    
    #DENY FILES
     <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
       Order allow,deny
       Deny from all
    </Files>
    
    #PHP
    <FilesMatch \.php$>
            SetHandler "proxy:unix:/tmp/php-cgi-00.sock|fcgi://localhost"
    </FilesMatch>
    
    #PATH
    <Directory "/www/wwwroot/code.666baby.com/linuxserver.666baby.com">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
</VirtualHost>
<VirtualHost *:443>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/code.666baby.com/linuxserver.666baby.com/"
    ServerName SSL.linuxserver.666baby.com
    ServerAlias linuxserver.666baby.com 
    #errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/linuxserver.666baby.com-error_log"
    CustomLog "/www/wwwlogs/linuxserver.666baby.com-access_log" combined
    
     RewriteEngine On
	ProxyRequests On
	ProxyVia On
	# Proxy Traffic
	RewriteCond %{HTTP:Upgrade} =websocket
        RewriteRule /(.*)           ws://localhost:8443/$1 [P,L]
        RewriteCond %{HTTP:Upgrade} !=websocket
        RewriteRule /(.*)           http://localhost:8443/$1 [P,L]
    
    #SSL
    SSLEngine On
    SSLCertificateFile /www/server/panel/vhost/cert/linuxserver.666baby.com/fullchain.pem
    SSLCertificateKeyFile /www/server/panel/vhost/cert/linuxserver.666baby.com/privkey.pem
    SSLCipherSuite EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5
    SSLProtocol All -SSLv2 -SSLv3 -TLSv1
    SSLHonorCipherOrder On
    
    
    #PHP
    <FilesMatch \.php$>
            SetHandler "proxy:unix:/tmp/php-cgi-00.sock|fcgi://localhost"
    </FilesMatch>
    

    #DENY FILES
     <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
       Order allow,deny
       Deny from all
    </Files>

    #PATH
    <Directory "/www/wwwroot/code.666baby.com/linuxserver.666baby.com/">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
</VirtualHost>

In the code-server terminal sudo apt install gcc g++ gdb

Install cpptools form https://github.com/microsoft/vscode-cpptools/releases/tag/1.7.1 Version 3.11.1 does not have this problem,Version 3.11.1 does not have this problem, it seems to be the bug that appeared since 3.12.0. Test url:https://linuxserver.666baby.com/ password: password

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
HanHan666666commented, Jan 8, 2022

Many thanks to the developers for their efforts, I tested it on version 4.0.1 and didn’t find this bug, it’s just like using the desktop client, it’s perfect.

1reaction
ls84commented, Jan 5, 2022

I have same problem with python debugger, i tried docker release and standalone release on ubuntu, both without any proxy. reverted back to 3.11.1, there were no problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Exchange 2016 Mailbox servers iApp template - AskF5
Select one of the three supported protocols listed by selecting the down arrow. A pop-up window appears, prompting you to either open or...
Read more >
Manual Chapter: Configuring ASM with Local Traffic Policies
The Select Deployment Scenario screen opens. For Deployment Scenario, select Create a security policy automatically and click Next. The Configure Security ...
Read more >
Managing BIG-IP ASM Live Updates (14.1.x and later) - AskF5
Open the F5 Downloads site. Select Find a Download. Under Select a Product Line, select the product line and BIG-IP version your system...
Read more >
Microsoft Remote Desktop Session Host servers iApp template
You can use this F5-supported iApp template to help you configure BIG-IP LTM to direct traffic and maintain persistence to Microsoft Remote ...
Read more >
LTM SSL Forward Proxy and Per-Request Policies - AskF5
You can assign up to three log settings that enable access system logging ... In the Search field, type prot , select Protocol...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found