This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| import java.awt.event.*; | |
| import javax.swing.*; | |
| import java.awt.datatransfer.*; | |
| import java.io.*; | |
| public class myEditor extends JFrame { | |
| String filename; | |
| JTextArea tx; | |
| Clipboard clip = getToolkit().getSystemClipboard(); | |
| myEditor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var log = console.log; | |
| //泳衣格式化代码的正则表达式 | |
| var reg = { | |
| DoubleQuotedString : new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"','g'),//双引号字符串 | |
| SingleQuotedString : new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'",'g'),//单引号字符串 | |
| Chars : new RegExp('([(=[{])','g'),//需用空格隔开的字符(用以逻辑判断代码规则) | |
| Empty : new RegExp('[ ]+','g'),//空字符 | |
| MultiLineCComments : new RegExp('/\\*[\\s\\S]*?\\*/', 'gm'),//多行注释 | |
| SingleLineCComments : new RegExp('//.*$', 'gm'),//单行注释 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| log = console.log; | |
| var c = function(){}; | |
| c.create = function( Config ){ | |
| var newFn = function(){ | |
| //return newFn; | |
| }; | |
| newFn.prototype = new c; | |
| var fn = c.prototype; | |
| for (var i in Config) |
NewerOlder