Skip to content

Commit

Permalink
setup debugging tools
Browse files Browse the repository at this point in the history
This commit is to store the current code in the case that I break something when trying to use bisect
  • Loading branch information
sirpython committed Aug 11, 2015
1 parent 157dbd7 commit 92ee000
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/game_board/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ function GameboardController(CardshifterServerAPI, $scope, $timeout, $rootScope,
"cardInfo": debug
};

var i = 0;
CardshifterServerAPI.setMessageListener(function(message) {
commandMap[message.command](message);
}, ["zoneMessage", "cardInfo"]);
//commandMap[message.command](message);
debug(message);
});

function debug(message) {
i++;
console.log(i);
console.log("Received a [" + message.command + "] message:");
console.log(message);
console.log("----------");
Expand Down

0 comments on commit 92ee000

Please sign in to comment.