feat(vs-code): Debugging #924
							
								
								
									
										8
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@ -8,10 +8,12 @@
 | 
				
			|||||||
      "type": "node",
 | 
					      "type": "node",
 | 
				
			||||||
      "request": "launch",
 | 
					      "request": "launch",
 | 
				
			||||||
      "name": "Debug and Watch",
 | 
					      "name": "Debug and Watch",
 | 
				
			||||||
      "runtimeArgs": ["-r", "ts-node/register", "-r", "tsconfig-paths/register", "--watch-path", "src"],
 | 
					      "runtimeArgs": ["-r", "tsconfig-paths/register", "-r", "ts-node/register", "--watch-path", "src"],
 | 
				
			||||||
      "args": ["${workspaceFolder}/src/index.ts"],
 | 
					      "args": ["${workspaceFolder}/src/index.ts"],
 | 
				
			||||||
      "internalConsoleOptions": "openOnSessionStart",
 | 
					      "console": "integratedTerminal"
 | 
				
			||||||
      "console": "internalConsole"
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//can use "console": "internalConsole" for VS Code's Debug Console. For that, forceConsole in logger.ts is needed to be true
 | 
				
			||||||
 | 
					//"internalConsoleOptions": "openOnSessionStart" can be useful then
 | 
				
			||||||
 | 
				
			|||||||
@ -58,7 +58,7 @@ const combinedLog = new transports.DailyRotateFile({
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const consoleLog = new transports.Console({
 | 
					const consoleLog = new transports.Console({
 | 
				
			||||||
    forceConsole: true,
 | 
					    forceConsole: false,
 | 
				
			||||||
    format: format.combine(
 | 
					    format: format.combine(
 | 
				
			||||||
        format.colorize(),
 | 
					        format.colorize(),
 | 
				
			||||||
        format.timestamp({ format: "YYYY-MM-DDTHH:mm:ss:SSS" }), // uses local timezone
 | 
					        format.timestamp({ format: "YYYY-MM-DDTHH:mm:ss:SSS" }), // uses local timezone
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user