VSCode 㧠UE4/C++: ãããã°å®è¡ã«å¿ è¦ãª launch.json ã®è¨å®ã®ä»æ¹
æ¦è¦
VSCode 㧠UE4/C++ ãéçºããéã«ãããã°å®è¡ã«å¿ è¦ãª launch.json ã®è¨å®æ¹æ³ãç´¹ä»ã
âãããªæã㧠VSCode ããèµ·åãã¦ããªãç¶æ ãã"ãã"ã¹ã¿ã³ãã¢ãã¼ã³é¢¨ã®å®è¡ãã§ããããã¡ãããèµ·åä¸ã® UE4Editor ã¸ã®ã¢ã¿ãããã§ããã
VSCode ã®è¨å®ã®ä»æ¹
VSCode 㧠.uproject ã®ãããã£ã¬ã¯ããªã¼ãéããªã©ãã¦ããç¶æ ã§:
- ç»é¢å·¦
Debug
ã¢ã¤ã³ã³ãã½ã¡ –> å·¦å´ã«å±éãã DEBUG ã«ã©ã ã®ä¸é¨ã®æ¯è»ã¢ã¤ã³ã³ãã½ã¡- or ã¡ãã¥ã¼ > Debug > Open Configurations
- VSCode
.vscode/launch.json
ã次ã®ããã«ç·¨é
{ "version": "0.2.0" , "configurations": [ { "name": "Attach" , "type": "cppvsdbg" , "request": "attach" , "processId": "${command:pickProcess}" } , { "name":"Launch" , "type": "cppvsdbg" , "request": "launch" , "program": "C:/Program Files/Epic Games/UE_4.16/Engine/Binaries/Win64/UE4Editor.exe" , "args": [ "C:/<YOUR UE4 PROJECT PATH>/<YOUR PROJECT NAME>.uproject", "-game" ] , "cwd": "${workspaceRoot}" } ] }
Note: <YOUR UE4 PROJECT PATH>/<YOUR PROJECT NAME>
ã¯åèªã®UE4ããã¸ã§ã¯ãã®é
ç½®ãã¹ã¨ããã¸ã§ã¯ãåã«ç½®ãæããã
launch.json
ãä¿åããç´å¾ãã DEBUG ã®ç·ã®ãã¬ã¤çãªãã¿ã³ã®å³å´ã®ã³ã³ãããã¯ã¹ã« Attach
㨠Launch
ãåºç¾ãLaunch
ã§ç·ã®ãã¬ã¤çãªãã¿ã³ãã½ã¡ãã¨"ãã"ã¹ã¿ã³ãã¢ãã¼ã³é¢¨ã®å®è¡ï¼ UE4Editorãã Launch
ããå ´åã¨åæ§ã®ç¬ç«ããã¦ã£ã³ãã¦ã§ã®èµ·åï¼ãå¯è½ãæ¢ã«èµ·åä¸ã® UE4Editor ã¸ã¢ã¿ãããããå ´å㯠VSCode ã® DEBUG 㧠Attach
ãé¸æããç¶æ
ã§ç·ã®ãã¬ã¤çãªãã¿ã³ãã½ã¡ããããã»ã¹é¸æ㧠ue4 ãããã¾ã§å
¥åããã¨ã¤ã³ã¯ãªã¡ã³ã¿ã«ã« UE4Editor ãé¸æã§ãã ENTER ãã¦ã¢ã¿ããã§ããã
ãããã°ä¸ã¯è¡çªå·ã®å·¦å´ã«ãã¬ã¤ã¯ãã¤ã³ããä»è¾¼ãã§æ¢ããããã¹ãããå®è¡ãããããã¼ã«ã«å¤æ°ãã¦ã©ãããã³ã¼ã«ã¹ã¿ãã¯ãã¹ã¬ããã®ç£è¦ããããã°ã³ã³ã½ã¼ã«ãªã©ãæ´»ç¨ãã¦ãã°ã®åå ã確èªãããªã©ããããã便å©ãªGUIãããã¬ã¼ã®å¿ è¦ååãªæ©è½ã使ããã
VSCode ã®é常ã«è»½å¿«ãªãããã¯ãã«ãªåä½ã¯ããã°ã©ãã¼ã«ã¨ã£ã¦æ鬱ãªã ãã«æµªè²»ããã¦ãã¾ã MOTTAINAI çãªã³ã¹ããå°ããæããªããå¿«é©ã«ã½ããã¦ã§ã¢ã®éçºãããã¥ã¡ã³ãã®è¨è¿°ãå¯è½ã§ãä»åæå¾ ããããã« UE4/C++ éçºã«ã¤ãã¦ãå°ãã®è¨å®ã§å¿«é©ã«GUIãããã¬ã¼ã¨ãã¦ãæ©è½ãå¬ããã§ããã½(´ã¼ï½)ã