|
dotnet 의 cshtml 에서 emmet 를 사용할때 어떨때는 되고 어떨때는 되지 않는 문제 발생
내가 제대로 못쓰는줄 알고 그려려니 하고 사용했었으나…
vscode 의 환경에
|
"emmet.includeLanguages": { "razor":"html", "aspnetcorerazor": "html", "asp": "html", }, |
추가로 그 뒤로는 emmet 가 잘 되는 것 확인
프로젝트용 폴더 생성
main.go 파일 생성
|
package main import "fmt" func main() { fmt.Println("hello world") } |
vscode 로 폴더 열기
F5 로 실행 -> Error
dlv 파일이 없어서 생긴 문제 인것 같아서 일단 delve 패키지 install
하지만
|
go: go.mod file not found in current directory or any parent directory; see 'go help modules' |
터미널에서
|
go env -w GO111MODULE=auto |
F5 로 실행 및 디버깅
그리고 vscode의 환경설정에 아래 코드 추가
|
"go.toolsManagement.autoUpdate": true, |
그때 그때 사용하지 않는 것을 Disable 해서 쓴다.
Auto Rename Tag Bootstrap 4, Font awesome4, Font Awesome5 Free & Pro snippets Bootstrap 5 Snippets C/C++ C# C# Extensions CSS Peek Debugger for Chrome DotENV ES7 React/Redux/GraphQL/React-Native snippets Font Awesome Auto-complete & Preview Git History GitLens Git supercharged Go Highlight Matching Tag Html (C#) HTML […]
vscode에 launch.json
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "name": "Launch Package geth", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceFolder}/cmd/geth/" // main.go 가 있는 폴더 path } ] } |
node를 실행
vscode에 launch.json
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}/src" } ] } |
터널링 구축
|
ssh -N -L 9221:localhost:9229 [remoteIP] |
node를 inspection 모드로 변경 & 웹 서버 실행
|
node --inspect & yarn start |
vscode에 launch.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "address": "localhost", "localRoot": "${workspaceFolder}", "name": "Attach to Remote", "port": 9229, "remoteRoot": "...", "request": "attach", "skipFiles": [ "<node_internals>/**" ], "type": "pwa-node" } ] } |
|
|