I want to debug angular2 using google chrome, however I'm having a couple problems.
-
No break points in my typescript are ever hit except when the app first loads. Say I have a breakpoint for a PUT request on my angular service, well, unfortunately no break point in there will get hit even if the call was successful and returned what I wanted through the web api.
-
I can't even look at anything in the console. ng.probe($0) returns undefined so debugging is just about impossible.
please let me know what code you would like to see. Not sure what will be relevant to the problem
Here is my app.modlue.ts just in case this helps?
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DashboardComponent } from './dashboard.component';
import { testelementDetailComponent } from './testelement-detail.component';
import { testelementsComponent } from './testelements.component';
import { testelementService } from './testelement.service';
import { testelementSearchComponent } from './testelement-search.component';
import { ChatService} from './chat.service';
import { ChatComponent } from './chat.component';
//import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
//InMemoryWebApiModule.forRoot(InMemoryDataService),
AppRoutingModule
],
declarations: [
AppComponent,
DashboardComponent,
testelementDetailComponent,
testelementsComponent,
testelementSearchComponent,
ChatComponent
],
providers: [testelementService, ChatService, { provide: LocationStrategy, useClass: HashLocationStrategy } ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Aucun commentaire:
Enregistrer un commentaire